Compose Breaking Change
LottieAnimation now takes progress as a () -> Float
rather than a Float
. This allows Lottie to redraw without triggering a recomposition every time progress updates. For more information, refer to the Compose phase docs. The existing API will exist as deprecated for one more release but will then be removed. For the vast majority of use cases:
LottieAnimation(composition, progress)
will become:
LottieAnimation(composition, { progress })
or
LottieAnimation(
composition = composition,
progress = { progress }
)
Bugs Fixed
- De-dupe gradient stops. On pre-Oreo devices, if you had color and opacity stops in the same place and used hardware acceleration, you may have seen artifacts at the stop positions as of 5.1.1 #20814