You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an animation that is running in .loop mode. When the api call fetch is done , I want to update the animation mid way to a success / failure animation. Setting the animationView to a new animation and then playing does not play anything. The view is empty and it is not loading any animation
Check these before submitting:
[]
[]
This issue is a:
[] Non-Crashing Bug (Visual or otherwise)
Which Version of Lottie are you using?
Lottie 3.2.3
What Platform are you on?
[] iOS
What Language are you in?
[] Swift
Code Example
self.animationView.play { isfinished in
let path = BundleLocator.getResourcesBundle()?.path(forResource: "lottie_animation", ofType: "json") ?? ""
let animation = Animation.filepath(path)
self.animationView.loopMode = .loop
self.animationView.animation = animation
self.animationView.play()
}
Animation JSON
The animation json plays normally when I load it first. Loading it after the first one fails
The text was updated successfully, but these errors were encountered:
Found a way around for this. Have to actually remove the view from its parent superview and re-add it again for this to work.
However doing this way is causing a flicker in the animation when I am trying to remove and add it again. Kindly help
Lottie-iOS Issue
I have an animation that is running in .loop mode. When the api call fetch is done , I want to update the animation mid way to a success / failure animation. Setting the animationView to a new animation and then playing does not play anything. The view is empty and it is not loading any animation
Check these before submitting:
This issue is a:
Which Version of Lottie are you using?
Lottie 3.2.3
What Platform are you on?
What Language are you in?
Code Example
Animation JSON
The animation json plays normally when I load it first. Loading it after the first one fails
The text was updated successfully, but these errors were encountered: