Releases: ismai117/kottie
Releases · ismai117/kottie
1.7.3-alpha01
- wasm target added
1.6.3
1.6.3-alpha01: wasm target added
sample updated
v1.5.3
1.5.3-alpha02
kotlin version upgraded
1.5.3-alpha01
- Wasm target added
1.4.3
1.4.1: - upgraded kotlin version to 1.9.22
Changes
- kotlin version to 1.9.22
- upgraded compose version to 1.6.0
- upgraded compose-plugin version to 1.5.12
- Added playback control to animateKottieCompositionAsState.
1.3.1
KottieCompositionSpec
- Introducing
KottieCompositionSpec
for animation specifications. - Choose from Url, File, and JsonString specs for enhanced flexibility.
Example usage:
val composition = rememberKottieComposition(
spec = KottieCompositionSpec.Url("")
)
AnimateKottieCompositionAsState
- Use animateKottieCompositionAsState for animating and managing KottieComposition state.
- Control animation speed, iterations, and more.
Example usage:
val animationState by animateKottieCompositionAsState(
composition = composition,
speed = 1f,
iterations = 2
)
KottieAnimation
- KottieAnimation now supports direct composition usage.
- Monitor animation progress using the provided animationState.
Example usage:
KottieAnimation(
composition = composition,
progress = { animationState.progress },
modifier = modifier.fillMaxSize(),
)
Enhancements
- Improved and consistent handling of animation sources with KottieCompositionSpec.
- Easy monitoring of animation state (playing, completed) using the animationState object.
Example usage:
LaunchedEffect(
key1 = animationState.isPlaying
) {
if (animationState.isPlaying) {
println("Animation Playing")
}
if (animationState.isCompleted) {
println("Animation Completed")
}
}
Compatibility
- Maintains backward compatibility with previous versions.
- Smooth migration from old KottieAnimation methods to the new unified approach.
Bug Fixes
- Minor bug fixes and optimizations for a smoother user experience.
Note
- Developers are encouraged to migrate to the new KottieCompositionSpec for standardized animation source specification.
- The new animateKottieCompositionAsState utility provides finer control over animation parameters.