Lottie 3.0

func loopFromFrame(_ frameNumber: NSNumber) {
self.animationView?.setProgressWithFrame(frameNumber) self.animationView?.play(completion: { (completed) in
if completed {
self.loopFromFrame(frameNumber)
}
})
}
I didn't find this method in migration guide. Its appreciated that anyone could tell me.
self.animationView?.currentFrame = frameNumber
Cheers!
On Mon, Mar 25, 2019 at 11:57 PM SDH notifications@github.com wrote:
Check these before submitting:
- [] The issue doesn't involve an Unsupported Feature
https://github.com/airbnb/lottie-ios/blob/master/README.md#supported-after-effects-features- [] This issue isn't related to another open issue
This issue is a:
- [] Non-Crashing Bug (Visual or otherwise)
Which Version of Lottie are you using?
Lottie 3.0
What Platform are you on?
- [] iOS
What Language are you in?
- [] Swift
Expected Behavior Actual Behavior
[image: lotties_issue]
https://user-images.githubusercontent.com/1405754/54970662-081cda80-4fbe-11e9-9047-8a1cc7cae815.png
Code Examplefunc loopFromFrame(_ frameNumber: NSNumber) {
self.animationView?.setProgressWithFrame(frameNumber)
self.animationView?.play(completion: { (completed) in
if completed {
self.loopFromFrame(frameNumber)
}
})
}
Animation JSONI didn't find this method in migration guide. Its appreciated that anyone
could tell me.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/airbnb/lottie-ios/issues/825, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABHCzLhXZ3WvaQ3vA3igP8NF4K9HoJhxks5vaZqdgaJpZM4cKi-R
.
self.animationView?.currentFrame = frameNumberCheers!
…
Thank you!
Most helpful comment
self.animationView?.currentFrame = frameNumberCheers!
On Mon, Mar 25, 2019 at 11:57 PM SDH notifications@github.com wrote: