1

I am trying to add Lottie animations to my project. So far I've only tested on android and I got it working. Now I'm also trying to add them to my UWP app but I can't find a guide on how to do this.

There is this link that tells me lottie is supported on UWP.

And this post and (probably as a reaction) this post suggests it is possible within xamarin forms uwp.

I can't find a clear reference (or a tutorial) online if this is supported for Xamarin.Forms UWP projects. I'm mainly in doubt because I'm not sure if the Xamarin.Forms.UWP 'flavor' is the same as a 'normal' UWP application.

I could really appreciate a nudge in the right direction.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Sjors Miltenburg
  • 2,540
  • 4
  • 33
  • 60
  • Lottie Animation through XF is not supported in my knowledge but it can be done natively in UWP! – FreakyAli Apr 27 '20 at 06:42
  • @sjors I try to use Lottie in Xamarin.Uwp, but it can not display Lottie, so I think Lottie is an iOS, Android, and React Native library that renders the After Effects animations in real time. This features are not yet supported for Xamarin.forms. – Cherry Bu - MSFT Apr 27 '20 at 07:45

1 Answers1

2

I think it has something to do with this bug.

Although this sample with an older version (2.5.4) was not built with "support" for UWP I did get it working by adding the resources to the root dir and setting the build action to Content.

Downgrading the library in my own project to 2.5.4 fixed the problem for me.

Sjors Miltenburg
  • 2,540
  • 4
  • 33
  • 60