Set default transition values on PanModalPresentable

This commit is contained in:
tun57 2019-05-11 18:32:07 -07:00
parent 13251e1db7
commit 0b2152f878
1 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,14 @@ public extension PanModalPresentable where Self: UIViewController {
return 0.8
}
var transitionDuration: Double {
return PanModalAnimator.Constants.defaultTransitionDuration
}
var transitionAnimationOptions: UIView.AnimationOptions {
return [.curveEaseInOut, .allowUserInteraction, .beginFromCurrentState]
}
var backgroundAlpha: CGFloat {
return 0.7
}