I'm having a similar issue that the one described on #429 after update to the last version 2.1.4 (issue closed and included in the 2.1.4)
I have a view controller that contains a LOTAnimationView running in loop. At the moment I leave the view controller, because i change to another tab or push to a new view controller or present a modal view controller on top, and then go back to the original view controller I'm expecting the animation is still running.
After doing all this steps what I'm seeing is that the animation is frozen. It seems a similar issue that the #429
@meiwin did the PR you prepare fix the issue for you? It didn't in my case, the state restoration is prepared in willMoveTo, which is called just before animationDidStop, which then calls setProgressWithFrame and there the state restoration is reversed.
I'm not very familiar with the code, but shouldn't that reverse happen only if the callCompletionIfNecessary argument is actually true?
I'm seeing the exact same issue in 2.1.4. The animation does not resume playing even if I manually try to trigger animationView.play()
I've found a workaround. This is an issue because at the moment of me trying to get the animation to play, the LOTAnimationView was not fully visible yet. There was another ViewController that I was dismissing with an animation. The workaround was to re-trigger animationView.play() in the current ViewController's viewDidAppear method.
Lottie has been completely rewritten in Swift as of 3.0 (https://github.com/airbnb/lottie-ios/pull/777)
I am closing all issues prior to this release to reduce the noise. If you continue to run into this issues or any issue with Lottie 3.0 please open a new ticket
For continued support of Lottie Objective-c please point to this branch: https://github.com/airbnb/lottie-ios/tree/lottie/objectiveC
Most helpful comment
I'm seeing the exact same issue in 2.1.4. The animation does not resume playing even if I manually try to trigger
animationView.play()I've found a workaround. This is an issue because at the moment of me trying to get the animation to play, the
LOTAnimationViewwas not fully visible yet. There was another ViewController that I was dismissing with an animation. The workaround was to re-triggeranimationView.play()in the current ViewController'sviewDidAppearmethod.