Set default transition values on PanModalPresentable
This commit is contained in:
parent
13251e1db7
commit
0b2152f878
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue