Fuse 1.10+
- Add this source as a project of your fuse project e.g.
MyApp/Projects/Fuse-Lottie
. - Add the following lines to your .unoproj, taking into account your project directory.
"Projects": [
"Projects/Fuse-Cocoapods/cocoapods_include.unoproj",
"Projects/Fuse-Lottie/Lottie.unoproj"
]
- Install this version of BodyMovin for use with Lottie v2.5.3
- Copy your .json animations into a folder such as
MyApp/Assets/Animations
- Add the following to your .unoproj to bundle the animations
"Includes": [
"Assets/Animations/*.json:Bundle"
]
- Add the component to your UX markup (note: it will work on the device)
<NativeViewHost Width="100%" Height="320">
<RBT.Animation.Lottie ux:Name="myPlayer" File="{urlToJSON}" ContentMode="{contentMode}" LoopAnimation="{loopAnimation}" Play="{play}" Pause="{pause}" Stop="{stop}" Progress="{progress}" AutoReverseAnimation="{autoReverseAnimation}" AnimationCompleted="{animationCompleted}" />
</NativeViewHost>
See Full Example App for available options.
- We're currently using Lottie version 2.5.3
- Draw everything; can't use images for Android.
- Checkout the list of supported features: https://github.com/airbnb/lottie-ios#supported-after-effects-features
- Go through the After Effects/SVG tips here: http://airbnb.io/lottie/#/after-effects