Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS max/min frame and max/min progress ignored #322

Open
2 of 7 tasks
MattRames opened this issue Feb 26, 2021 · 2 comments
Open
2 of 7 tasks

iOS max/min frame and max/min progress ignored #322

MattRames opened this issue Feb 26, 2021 · 2 comments

Comments

@MattRames
Copy link

MattRames commented Feb 26, 2021

🐛 Bug Report

Max/min frame and max/min progress are ignored/commented out in the animation view renderer. Are these disabled on purpose?

https://github.com/Baseflow/LottieXamarin/blob/develop/Lottie.Forms/Platforms/Ios/AnimationViewRenderer.cs

Expected behavior

I would expect when I set max/min frame or max/min progress it would work.

Reproduction steps

Set max/min frame or max/min progress the full animation still plays.

Version: 4.0.7

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms
@WilCantrellAtDs
Copy link

Confirmed. Using this library for the first time, I discovered this as well. I haven't found a work around and considering just swapping out the JSON source for the 3 states I require.

Version: 4.0.8, iOS/Xamarin.Forms

@WilCantrellAtDs
Copy link

Follow up, I found a way around this:

In the XAML markup, make sure that AutoPlay is False. And when changing the frame range, make sure to call StopAnimation() on the AnimationView before starting PlayMinAndMaxFreame().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants