-
Notifications
You must be signed in to change notification settings - Fork 3
Animations
Håvard Moås edited this page Aug 27, 2023
·
11 revisions
DIPS delivers a set of animated images that you can use in your app. The animations are located in the mobile design tokens repository.
The animations are available for you to use with SKLottieView from SkiaSharp.Extended.UI.Maui:
XAML Shared:
<skia:SKLottieView
Source="{dui:Animations saved}"
HeightRequest="{dui:Sizes size_25}"
WidthRequest="{dui:Sizes size_25}"
/> To know when an animation has completed, use subscribe to SKLottieView.PropertyChanged. Inspect the args to know that IsCompleted property changed. If it changes, it will be completed when IsCompleted is true.
If you do not use our animations and are worried your app including animations that are not needed, you can turn it off by setting the following property in your .csproj:
<PropertyGroup>
<DIPSIncludeAnimations>False</DIPSIncludeAnimations>
</PropertyGroup>