Link Search Menu Expand Document

ViewControllerTransitioningDelegate

A set of methods that vend objects used to manage a fixed-length or interactive transition between view controllers.

public protocol ViewControllerTransitioningDelegate: AnyObject 

Inheritance

AnyObject

Default Implementations

animationController(forPresented:presenting:source:)

public func animationController(forPresented presented: ViewController,
                                  presenting: ViewController, source: ViewController)
      -> ViewControllerAnimatedTransitioning? 

animationController(forDismissed:)

public func animationController(forDismissed dismissed: ViewController)
      -> ViewControllerAnimatedTransitioning? 

interactionControllerForPresentation(using:)

public func interactionControllerForPresentation(using animator: ViewControllerAnimatedTransitioning)
      -> ViewControllerInteractiveTransitioning? 

interactionControllerForDismissal(using:)

public func interactionControllerForDismissal(using animator: ViewControllerAnimatedTransitioning)
      -> ViewControllerInteractiveTransitioning? 

presentationController(forPresented:presenting:source:)

public func presentationController(forPresented presented: ViewController,
                                     presenting: ViewController?,
                                     source: ViewController)
      -> PresentationController? 

Requirements

animationController(forPresented:​presenting:​source:​)

Asks your delegate for the transition animator object to use when presenting a view controller.

func animationController(forPresented presented: ViewController,
                           presenting: ViewController, source: ViewController)
      -> ViewControllerAnimatedTransitioning?

animationController(forDismissed:​)

Asks your delegate for the transition animator object to use when dismissing a view controller.

func animationController(forDismissed dismissed: ViewController)
      -> ViewControllerAnimatedTransitioning?

interactionControllerForPresentation(using:​)

Asks your delegate for the interactive animator object to use when presenting a view controller.

func interactionControllerForPresentation(using animator: ViewControllerAnimatedTransitioning)
      -> ViewControllerInteractiveTransitioning?

interactionControllerForDismissal(using:​)

Asks your delegate for the interactive animator object to use when dismissing a view controller.

func interactionControllerForDismissal(using animator: ViewControllerAnimatedTransitioning)
      -> ViewControllerInteractiveTransitioning?

presentationController(forPresented:​presenting:​source:​)

Asks your delegate for the custom presentation controller to use for managing the view hierarchy when presenting a view controller.

func presentationController(forPresented presented: ViewController,
                              presenting: ViewController?,
                              source: ViewController)
      -> PresentationController?