YetiCharacterLabelExample
YetiCharacterLabelExample copied to clipboard
Setting initial text value doesn't work
If you change your demo to use FadingLabel, the initial text value does not work. Setting a subsequent value works. The initial text value invokes animateOut, but it doesn't invoke the completion handler if there are no oldCharacterTextLayers. FallingLabel has an early out case at the beginning of animateOut. Adding the same check to FadingLabel seems to suffice (MotionLabel probably wants it as well
if oldCharacterTextLayers.count == 0 {
if let completionFunction = completion {
completionFunction(finished: true)
}
}