Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

[Improve] Completion speed #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mgray88
Copy link

@mgray88 mgray88 commented Feb 11, 2020

Better animation completion speed that is related to swipe velocity, and remaining view visible.

Particularly noticeable when the user swipes quickly, and is expecting a quick dismiss

When the user has finished swiping, set the `completionSpeed` of the animation based on the speed of the swipe, the duration returned by `transitionDuration:`, and the remaining height of the view

Previously, a constant transition time was used, which felt particularly unusual when a user swiped quickly, expecting a quick dismiss.
@mgray88 mgray88 changed the title Improve completion speed [Improve] Completion speed Feb 11, 2020
@mgray88
Copy link
Author

mgray88 commented Feb 11, 2020

I meant to branch this from master without the other PR included. If you want I can close this and resubmit

@mgray88 mgray88 requested a review from benguild February 11, 2020 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant