TransitionProtocol

public protocol TransitionProtocol : TransitionContext

TransitionProtocol is used to abstract any concrete transition implementation.

Transition is provided as an easily-extensible default transition type implementation.

  • The type of the rootViewController that can execute the transition.

    Declaration

    Swift

    associatedtype RootViewController : UIViewController
  • Performs a transition on the given viewController.

    Warning

    Do not call this method directly. Instead use your coordinator’s performTransition method or trigger a specified route (latter option is encouraged).

    Declaration

    Swift

    func perform(on rootViewController: RootViewController, with options: TransitionOptions, completion: PresentationHandler?)
  • multiple(_:) Default implementation

    Creates a compound transition by chaining multiple transitions together.

    Default Implementation

    Creates a compound transition by chaining multiple transitions together.

    Declaration

    Swift

    static func multiple(_ transitions: [Self]) -> Self

    Parameters

    transitions

    The transitions to be chained to form a combined transition.