Fix non-interactive dismiss animation timing

This commit is contained in:
Shadowfacts 2020-09-13 13:27:20 -04:00
parent ab77ad89b4
commit aa0f5192ea
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class SheetContainerDismissAnimationController: NSObject, UIViewControllerAnimat
if UIAccessibility.prefersCrossFadeTransitionsBackwardsCompat && (transitionContext?.viewController(forKey: .from) as? SheetContainerViewController)?.dismissAnimationInitialVelocity == nil {
return 0.25
} else {
return 0.5
return 0.35
}
}
@ -49,7 +49,7 @@ class SheetContainerDismissAnimationController: NSObject, UIViewControllerAnimat
let parameters = UISpringTimingParameters(dampingRatio: damping, initialVelocity: vector)
animator = UIViewPropertyAnimator(duration: duration, timingParameters: parameters)
} else {
animator = UIViewPropertyAnimator(duration: duration, curve: .easeOut)
animator = UIViewPropertyAnimator(duration: duration, curve: .easeInOut)
}
animator.addAnimations {