Slide 40
Slide 40 text
©2018 Wantedly, Inc.
extension PresentationController: UIViewControllerTransitioningDelegate {
func presentationController(forPresented presented: UIViewController,
presenting: UIViewController?,
source: UIViewController
) -> UIPresentationController? {
return self
}
func animationController(forPresented presented: UIViewController,
presenting: UIViewController,
source: UIViewController
) -> UIViewControllerAnimatedTransitioning? {
return PresentationAnimationController(operation: .present)
}
func animationController(forDismissed dismissed: UIViewController
) -> UIViewControllerAnimatedTransitioning? {
return PresentationAnimationController(operation: .dismiss)
}
}
ϓϩτίϧʹ४ڌ͢Δ͜ͱͷอূ PresentationController
(UIPresentationController)
UIViewController
TransitioningDelegate