mono / SkiaSharp.Extended

SkiaSharp is a cross-platform, comprehensive 2D graphics API for all .NET platforms. And, here is where you will find all sorts of extras that you can use with it.
https://mono.github.io/SkiaSharp.Extended
MIT License
218 stars 69 forks source link

[BUG] MAUI SKLottieView doesn't get enabled #282

Open nk-alex opened 2 weeks ago

nk-alex commented 2 weeks ago

Description

If you create a SKLottieView with IsAnimationEnabled="False", it won't get enabled even if you set IsAnimationEnabled="True" later from code behind.

Code

<skia:SKLottieView
  x:Name="animationView"
  Source="animation.json"
  HeightRequest="60"
  WidthRequest="60"
  Progress="0"
  IsAnimationEnabled="False"
  VerticalOptions="Center"
  HorizontalOptions="Center">

Expected Behavior

The animation status should be mutable. You should be able to set it to True/False to play/stop the animation. In Android works as expected.

Actual Behavior

In iOS once animation created with IsAnimationEnabled="False", won't play again even after setting IsAnimationEnabled="True" from code behind.

Basic Information