lexrus / LTMorphingLabel

[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.
MIT License
8.07k stars 782 forks source link

Float to Int conversion error in LTMorphingLabel.swift #123

Closed Fadedglyph closed 5 years ago

Fadedglyph commented 5 years ago

It's fine when the app launches. The slider scales it properly. But as I'm tapping on the label itself or clicking on the UISegmentedControl, it's crashing because the compiler can't convert the value to int because either it's infinite or NaN. I am attaching a screenshot, please look into this and let me know what to do. PS: I direct downloaded it from GitHub. screen shot 2019-01-16 at 12 13 00

lexrus commented 5 years ago

Thanks, it's fixed.