version. Check out our snapshot builds instead.
LottieAnimation
now takes a progress float instead of driving the animation internally. The driving of animations has been split into a new LottieAnimatable
class and animateLottieCompositionAsState
function. These are analogous to Jetpack's Animatable
and animate*AsState
functions. Properties that pertain to the animation such as speed, repeat count, and the new clip spec are part of animateLottieComposition
whereas properties that are related to rendering such as enabling merge paths and setting an image asset delegate are on the LottieAnimation
composable.
lottieComposition
has also been renamed rememberLottieComposition
.
There are overloaded version of LottieAnimation
that merge the properties for convenience. Please refer to the docs for LottieAnimation
, LottieAnimatable
, animateLottieCompositionAsState
and rememberLottieComposition
for more information.