Lottie-ios: What is the counterpart of this method. setProgressWithFrame

Created on 26 Mar 2019  Â·  2Comments  Â·  Source: airbnb/lottie-ios

Check these before submitting:

  • [] The issue doesn't involve an Unsupported Feature
  • [] 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

lotties_issue

Code Example

func loopFromFrame(_ frameNumber: NSNumber) {
self.animationView?.setProgressWithFrame(frameNumber) self.animationView?.play(completion: { (completed) in
if completed {
self.loopFromFrame(frameNumber)
}
})
}

Animation JSON

I didn't find this method in migration guide. Its appreciated that anyone could tell me.

Most helpful comment

self.animationView?.currentFrame = frameNumber

Cheers!

On Mon, Mar 25, 2019 at 11:57 PM SDH notifications@github.com wrote:

Check these before submitting:

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 Example

func loopFromFrame(_ frameNumber: NSNumber) {
self.animationView?.setProgressWithFrame(frameNumber)
self.animationView?.play(completion: { (completed) in
if completed {
self.loopFromFrame(frameNumber)
}
})
}
Animation JSON

I 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
.

All 2 comments

self.animationView?.currentFrame = frameNumber

Cheers!

On Mon, Mar 25, 2019 at 11:57 PM SDH notifications@github.com wrote:

Check these before submitting:

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 Example

func loopFromFrame(_ frameNumber: NSNumber) {
self.animationView?.setProgressWithFrame(frameNumber)
self.animationView?.play(completion: { (completed) in
if completed {
self.loopFromFrame(frameNumber)
}
})
}
Animation JSON

I 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 = frameNumber Cheers!
…

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaximKeegan picture MaximKeegan  Â·  3Comments

zhangjunmax picture zhangjunmax  Â·  3Comments

amannayak0007 picture amannayak0007  Â·  3Comments

rajeshbeats picture rajeshbeats  Â·  3Comments

loganblevins picture loganblevins  Â·  3Comments