rive-app / rive-ios

iOS runtime for Rive
MIT License
510 stars 58 forks source link

Fix computing seconds #158

Closed mikerreed closed 2 years ago

mikerreed commented 2 years ago

The earlier code was calling int/int -- which gave a truncated, integer result. Switching to floating point math.

mikerreed commented 2 years ago

lgtm.

would love to see a simple test just showing that it's broken & fixed

https://github.com/rive-app/rive-ios/pull/159