Play LottieAnimation manually according value #2217
arthurBusarov
started this conversation in
General
Replies: 1 comment 1 reply
-
hey, did you find the answer? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there.
I have nex scenario - I have a scroll view with lottie animation on top. When user scrolls the scrollView down (the scroll offset increases) the animation should be played manually related on the offset value.
In other words, I have a spinner animation, for pull to refresh, when user scrolls (drags) scroll view the animation have to make a full round related on offset value and if it happens the refresh could start and animation have to play in normal mode
.playing(loopMode: .loop)
But how could I do this manual scroll playing in swiftUI?
I found this and it could be kinda Sync Lottie with scroll but I cannot find the same for the swiftUI.
Beta Was this translation helpful? Give feedback.
All reactions