LottieXamarin icon indicating copy to clipboard operation
LottieXamarin copied to clipboard

iOS max/min frame and max/min progress ignored

Open MattRames opened this issue 5 years ago • 2 comments

🐛 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:

  • [X] :iphone: iOS
  • [ ] :robot: Android
  • [ ] :checkered_flag: WPF
  • [ ] :earth_americas: UWP
  • [ ] :apple: MacOS
  • [ ] :tv: tvOS
  • [X] :monkey: Xamarin.Forms

MattRames avatar Feb 26 '21 16:02 MattRames

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 avatar May 28 '21 00:05 WilCantrellAtDs

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().

WilCantrellAtDs avatar May 28 '21 03:05 WilCantrellAtDs