Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FXLabel Animate Font Size #23

Open
devfsmalik opened this issue Dec 8, 2014 · 1 comment
Open

FXLabel Animate Font Size #23

devfsmalik opened this issue Dec 8, 2014 · 1 comment

Comments

@devfsmalik
Copy link

Hi Nick,

I actually want to animate font size between two values but UIView animation does not work on UILabel font size.

Start Font Size= 20 pts
End Font Size = 100 pts

In animation it sets 100pts at once not animate and gradually increase. I actually want to gradually increase the font size.

Can you help how to achieve or can FXLabel help to achieve.

Thanks,

@nicklockwood
Copy link
Owner

FXLabel doesn't support this either, I'm afraid. UILabel updating requires a redraw, which iOS animation doesn't support. The best option would be to animate using an NSTimer or CADisplayLink to repeatedly redraw the label at intermediate sizes over several frames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants