lexrus / LTMorphingLabel

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

How can I change the text of the label without the animation? #60

Open Sweeper777 opened 8 years ago

Sweeper777 commented 8 years ago

Sometimes, I don't want to the animation to occur when I set the text. I thought this would work:

// label's initial text is 00:04
label.morphingEnabled = false
label.text = "hello"
label.morphingEnabled = true

And this is what happened:

simulator screen shot jul 24 2016 5 57 53 pm

The app basically froze in that frame of the animation. Why?