TransitionPerformer

public protocol TransitionPerformer : Presentable

The TransitionPerformer protocol is used to abstract the route-type specific characteristics of a Coordinator. It keeps type information about its transition performing capabilities.

  • The type of transitions that can be executed on the rootViewController.

    Declaration

    Swift

    associatedtype TransitionType : TransitionProtocol
  • The rootViewController on which transitions are performed.

    Declaration

    Swift

    var rootViewController: TransitionType.RootViewController { get }
  • Perform a transition.

    Warning

    Do not use this method directly, but instead try to use the trigger method of your coordinator instead wherever possible.

    Declaration

    Swift

    func performTransition(_ transition: TransitionType, with options: TransitionOptions, completion: PresentationHandler?)

    Parameters

    transition

    The transition to be performed.

    options

    The options on how to perform the transition, including the option to enable/disable animations.

    completion

    The completion handler called once a transition has finished.