Com.Nkkinsoft.iOS.Lottie
2.5.3
dotnet add package Com.Nkkinsoft.iOS.Lottie --version 2.5.3
NuGet\Install-Package Com.Nkkinsoft.iOS.Lottie -Version 2.5.3
<PackageReference Include="Com.Nkkinsoft.iOS.Lottie" Version="2.5.3" />
<PackageVersion Include="Com.Nkkinsoft.iOS.Lottie" Version="2.5.3" />
<PackageReference Include="Com.Nkkinsoft.iOS.Lottie" />
paket add Com.Nkkinsoft.iOS.Lottie --version 2.5.3
#r "nuget: Com.Nkkinsoft.iOS.Lottie, 2.5.3"
#:package Com.Nkkinsoft.iOS.Lottie@2.5.3
#addin nuget:?package=Com.Nkkinsoft.iOS.Lottie&version=2.5.3
#tool nuget:?package=Com.Nkkinsoft.iOS.Lottie&version=2.5.3
LottieXamarin
.NET bindings and a .NET MAUI control for Lottie animations, for Android and iOS on .NET 10 and .NET 11. This is a community fork, not an official Airbnb release. Xamarin.Forms, macOS, Mac Catalyst, tvOS, Windows and Tizen were dropped in the November 2026 update (Xamarin.Forms reached end of support in May 2024).
Packages
| Project | Package | Version | Targets | Native library |
|---|---|---|---|---|
Lottie.Android |
Com.Nkkinsoft.Android.Lottie |
6.7.5 | net10.0-android, net11.0-android (API 24+) |
lottie-android 6.7.1 |
Lottie.iOS |
Com.Nkkinsoft.iOS.Lottie |
2.5.3 | net10.0-ios, net11.0-ios (iOS 15+) |
lottie-ios 2.5.x (Objective-C LOT* API) |
Lottie.Maui |
Com.Nkkinsoft.Maui.Lottie |
1.0.0 | .NET MAUI 10 and 11 on Android and iOS | uses the two bindings |
None of the packages require preview features: apps reference them normally on .NET 10 or .NET 11.
.NET MAUI
// MauiProgram.cs
using Lottie.Maui;
builder.UseMauiApp<App>().UseLottie();
Put animation.json in Resources/Raw (build action MauiAsset), then:
<ContentPage xmlns:lottie="clr-namespace:Lottie.Maui;assembly=Lottie.Maui" ...>
<lottie:AnimationView Animation="animation.json"
AnimationSource="AssetOrBundle"
RepeatMode="Infinite"
HeightRequest="200"
Clicked="OnAnimationClicked" />
</ContentPage>
| Source | How |
|---|---|
App asset (Android assets/, iOS bundle) |
Animation="name.json" with AnimationSource="AssetOrBundle" (the default) |
| JSON text | SetAnimationFromJson(json) |
| Remote or local URL | SetAnimationFromUrl(url) (iOS downloads it asynchronously; failures raise OnFailure) |
| Stream | SetAnimationFromStream(stream) |
| Embedded resource | SetAnimationFromEmbeddedResource("name.json", typeof(App).Assembly); the name can be the full manifest name or just the file name |
Playback: PlayAnimation(), PauseAnimation(), ResumeAnimation(), StopAnimation(), PlayMinAndMaxFrame(), PlayMinAndMaxProgress(), ReverseAnimationSpeed(). RepeatMode is Restart, Reverse (with RepeatCount extra plays) or Infinite. IsAnimating and Duration (milliseconds) are updated by the control, and the events OnAnimationLoaded, OnPlayAnimation, OnPauseAnimation, OnResumeAnimation, OnStopAnimation, OnRepeatAnimation, OnFinishedAnimation, OnAnimationUpdate (Android), OnFailure and Clicked report what happens. MinFrame/MaxFrame/MinProgress/MaxProgress, ImageAssetsFolder and EnableMergePathsForKitKatAndAbove apply on Android; on iOS ImageAssetsFolder names a bundle folder that holds the images.
The sample app in Samples/Maui/Lottie.Sample shows an asset animation with playback buttons and an embedded-resource animation.
Android binding
<PackageReference Include="Com.Nkkinsoft.Android.Lottie" Version="6.7.5" />
Place animation.json in your app's Assets folder (build action AndroidAsset):
<com.airbnb.lottie.LottieAnimationView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/animation_view"
android:layout_width="200dp"
android:layout_height="200dp"
app:lottie_fileName="animation.json"
app:lottie_autoPlay="true"
app:lottie_loop="true" />
using Com.Airbnb.Lottie;
var composition = await LottieComposition.Factory.FromAssetFileNameAsync(this, "animation.json");
if (composition is not null)
{
animationView.Composition = composition;
animationView.PlayAnimation();
}
LottieComposition.Factory also has FromJsonStringAsync(json) and FromInputStreamAsync(stream) (each takes an optional CancellationToken), and LottieAnimationView.SetImageAssetDelegate(Func<LottieImageAsset, Bitmap?>) supplies images from code. Transforms/Metadata.xml leaves out some upstream types (generic value callbacks, keyframe internals, the network package), so the managed API is not a one-to-one copy of lottie-android.
iOS binding
using Airbnb.Lottie;
var animation = LOTAnimationView.AnimationNamed("LottieLogo1"); // LottieLogo1.json in the app bundle
View.AddSubview(animation);
bool finished = await animation.PlayAsync(); // also PlayToProgressAsync, PlayFromProgressAsync, PlayToFrameAsync, PlayFromFrameAsync
The binding wraps the checked-in libLottie-ios.a, a build of lottie-ios 2.5.x, the last release with an Objective-C API (lottie-ios 3 and 4 are Swift-only and need a different kind of binding).
iOS simulator on Apple silicon
libLottie-ios.a is a fat archive with arm64 (devices) and x86_64 (simulator) slices, but no arm64 simulator slice. Device builds work everywhere. On an Apple-silicon Mac, run simulator builds as Intel:
dotnet build -f net11.0-ios -p:RuntimeIdentifier=iossimulator-x64
The lasting fix is an xcframework with an arm64 simulator slice, built on a Mac from lottie-ios 2.5.3 (xcodebuild -create-xcframework with device and simulator builds), then referenced as <NativeReference Include="Lottie.xcframework">.
Building and packing
You need the .NET 11 SDK (pinned by global.json, which also builds the net10.0 targets) and the workloads: dotnet workload install android ios maui. On Windows, run:
build-pack.cmd
It packs Lottie.Android, Lottie.iOS and Lottie.Maui into artifacts\nuget (.nupkg and .snupkg), builds the sample for net11.0-android and net10.0-android, and writes everything to artifacts\pack.log. Elsewhere:
dotnet pack Lottie.Android/Lottie.Android.csproj -c Release -o artifacts/nuget
dotnet pack Lottie.iOS/Lottie.iOS.csproj -c Release -o artifacts/nuget
dotnet pack Lottie.Maui/Lottie.Maui.csproj -c Release -o artifacts/nuget
Lottie.slnx contains the three libraries and the sample. Lottie.Android checks its public API against the published 6.7.4 package when it packs. After this update, run tools\cleanup-removed-platforms.cmd once to delete the Xamarin.Forms, macOS, tvOS, Mac Catalyst, Windows and Tizen sources and the old Lottie.sln.
License and links
Licensed under Apache-2.0. Lottie is an Airbnb project; this fork is maintained separately.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-ios26.0 is compatible. net11.0-ios27.2 is compatible. |
-
net10.0-ios26.0
- No dependencies.
-
net11.0-ios27.2
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Com.Nkkinsoft.iOS.Lottie:
| Package | Downloads |
|---|---|
|
Com.Nkkinsoft.Maui.Lottie
Lottie for .NET MAUI 10 and 11 (community fork): an AnimationView control that renders After Effects animations natively on Android (lottie-android 6.7.1) and iOS (lottie-ios 2.5.x). Register it with builder.UseLottie(). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.5.3 | 90 | 11/16/2026 |
2.5.3: first release of the iOS binding package for .NET 10/11 (iOS only; Mac Catalyst, macOS and tvOS were dropped).