Koloda
Koloda copied to clipboard
public func swipe(_ direction: SwipeResultDirection, force: Bool = false) not working when button tapped quickly multiple times.
if !animationSemaphore.isAnimating
this condition is failing
Not positive but isn't the idea that you have to wait for a swipe to finish animating before the method fires again?
@shaandsingh you are correct but from user's perspective, it still takes time even after the card has gone out of sight. For them the animation has completed and they can see only the new card. Looks like isAnimating takes more time to reset than it should.
Changing the drag speed from default to .fast made the experience better though.
Got it. Does swipe force = true help? On Jan 22, 2019, 2:04 AM -0500, Keshav Bansal [email protected], wrote:
@shaandsingh you are correct but from user's perspective, it still takes time even after the card has gone out of sight. For them the animation has completed and they can see only the new card. Looks like isAnimating takes more time to reset than it should. Changing the drag speed from default to .fast made the experience better though. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Just tried. Doesn't help.
+1 to this
- 1 as well, even with the .fast animation this issue still crops up
+1 to this
+1 to this
+1
+1
+1
+1
+1 still
- 1 still
- 1