Lottie 3.0.6 (freshly downloaded from the github page)
To recreate this issue please add NavigationController and connect two ViewControllers to it. First VC should have two buttons:
Second VC can be left empty. We need it only to move to it, and then go back to the first one.
I've reproduced this issue on Lottie Example downloaded straight from the github page.
I've only added NavigationController, empty ViewController and two buttons (for starting animation and moving to the second ViewController).
Try setting the BackgroundBehavior of the animation view.
https://github.com/airbnb/lottie-ios/blob/master/README.md#background-behavior
Hello Buba447,
Thanks for your reply and sorry I haven't answered you earlier. I've set BackgroundBehavior but it didn't work. I've modified the example project, so you can check out how the issue works:
My colleague found out that setting the animation progress in the completion solves the problem, but in my opinion, it shouldn't be necessary.
Here is repo with the modified example project:
https://github.com/JanSzala/lottie_issue
I have the same issue as @JanSzala.
I have found a fix for this bug here https://github.com/airbnb/lottie-ios/pull/926
Please pull and verify it works.
Thanks for bringing this to my attention!
Hey @buba447, now it works perfectly thanks!
Most helpful comment
I have the same issue as @JanSzala.