今のやりかた
LottieAnimation(
composition,
iterations = LottieConstants.IterateForever,
)
昔のやりかた
val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.search_animation))
val progress by animateLottieCompositionAsState(composition = composition, iterations = LottieConstants.IterateForever)
LottieAnimation(
composition = composition,
progress = { progress },
)
参考