question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Unable to display Lottie Animation within Popup

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I would like to display a Lottie animation within a popup, however, the animation is loaded only on iOS. Android and macOS do not load the Lottie Animation.

Android - The image is not rendered at all. iOS - The image renders and animates properly. macOS - The image renders without animation.

image image image

Please find below a couple of videos showing the issue

https://user-images.githubusercontent.com/1047398/192577026-1872d522-ec10-47d1-bf1a-985ce64643fd.mov

https://user-images.githubusercontent.com/1047398/192577040-89014a88-d76d-4951-8f79-0b82fd14384d.mp4

Expected Behavior

It is expected the Lottie animation to be rendered properly in all platforms within a popup.

Steps To Reproduce

  1. Create a new MAUI project
  2. Add CommunityToolkit.Maui nuget package
  3. Add SkiaSharp.Extended.UI.Maui nuget package (preview)
  4. Create a CommunityToolkit Popup view and add the following code: <skia:SKLottieView Source="loading.json" WidthRequest="200" HeightRequest="200" RepeatCount="-1" VerticalOptions="Center" HorizontalOptions="Center"/>
  5. Use the following Lottie file as animation (Download the JSON file): https://lottiefiles.com/97952-loading-animation-blue
  6. Include the json file into the folder /Resources/Raw
  7. Mark the json file as build action > MauiAsset
  8. Create a page with a button that shows the popup view on a click event

Link to public reproduction project repository

https://github.com/mono/SkiaSharp.Extended/files/9577812/SKLottieViewBug.zip

Environment

- .NET MAUI CommunityToolkit: 1.2.0
- OS:macOS Monterey 12.6
- .NET MAUI: 6.0.486
- SkiaSharp.Extended.UI.Maui 2.0.0-preview.61

Anything else?

Thanks in advance for this AMAZING library!

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
bijingtoncommented, Sep 16, 2022

Hey @vhugogarcia! We don’t have any Lottie tooling in the .NET MAUI Community Toolkit.

Did you perhaps intent to open this Issue on the .NET MAUI repo or the SkiaSharp.Extended repo?

I suggested he open it here. I don’t know where the issue lies yet but for now the issue is that the Lottie animation render fine in a .NET MAUI app but not in the toolkits Popup.

2reactions
VToegelcommented, Jan 11, 2023

@vhugogarcia I tested it on windows and it does work too.

Rgds Vinc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lottie Animation Not Showing - 3 Issues to Fix
1. Lottie animations not appearing due to Plugin conflict. It can happen that Lottie animations are visible when logged in as admin but...
Read more >
Lottie not showing images - Lottie Animation Design
I am trying to export an animation as Lottie in Bodymovin but it wont show the images although i put them into the...
Read more >
The Complete Guide to Adding and Editing Lottie ...
It's easy with LottieFiles. In this article, we'll show you a few different ways to add and customize free Lottie animations in WordPress....
Read more >
2757 Error Pop Up Lottie Animations
Download 2757 Error Pop Up Lottie Animations for free or premium in JSON, LOTTIE, GIF, AEP or MP4 formats. Bring motion to your...
Read more >
Why is my Lottie animation loading properly on localhost ...
But when i open my deployment server (which is vercel) the animation fails to load and there are some errors in the console....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found