You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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