ismai117 / kottie

Render After Effects Animations Library - Compose Multiplatform | Inspired by Airbnb/Lottie
Apache License 2.0
190 stars 8 forks source link

reverseOnRepeat not working for iOS #21

Closed carlosftorres closed 23 hours ago

carlosftorres commented 1 month ago

I have this animation state

val animationState by animateKottieCompositionAsState(
        composition = composition,
        isPlaying = playing,
        iterations = 3,
        reverseOnRepeat = true,
        speed = 0.7f
    )

trying to use reverseOnRepeate = true, in android it works fine but in iOS behaves the same if the property is true or false.

Could you add support for reverseOnRepeat on iOS?

Thanks!

ismai117 commented 1 month ago

Hi @carlosftorres setAnimationRepeatAutoreverses() is deprecated on lottie iOS - https://developer.apple.com/documentation/uikit/uiview/1622501-setanimationrepeatautoreverses?changes=_6

I will try my best to sort it out

ismai117 commented 23 hours ago

reverseOnRepeat functionality is now added to the latest kottie release 2.0.0