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
227 stars 70 forks source link

[BUG] Fails to load the animation after the resource dictionary is switched #284

Open kycuff opened 1 month ago

kycuff commented 1 month ago

Description

After switching theme with .Net Maui causes the animation to no longer work but after an app restart it works.

Where the lottie animation should render there is just a blank space but there are no errors or no crashes.

IOS appears to be ok and it is just Android with the issue.

Code All the code does is switch out the ResourceDictionary that is used.

Application.Current!.Resources = themeSwitch.IsToggled ? new DarkTheme() : new LightTheme();

Expected Behavior

Would still expect the lottie animation to play after changing the theme.

Actual Behavior

Where the lottie animation should render there is just a blank space but there are no errors or no crashes.

Basic Information

Reproduction Link

https://github.com/kycuff/LottieIssueApp