Type Aliases

The following type aliases are available globally.

  • The completion handler for transitions.

    Declaration

    Swift

    public typealias PresentationHandler = () -> Void
  • The completion handler for transitions, which also provides the context information about the transition.

    Declaration

    Swift

    public typealias ContextPresentationHandler = (TransitionContext) -> Void
  • NavigationTransition offers transitions that can be used with a UINavigationController as rootViewController.

    Declaration

    Swift

    public typealias NavigationTransition = Transition<UINavigationController>
  • PageTransition offers transitions that can be used with a UIPageViewController rootViewController.

    Declaration

    Swift

    public typealias PageTransition = Transition<UIPageViewController>
  • SplitTransition offers different transitions common to a UISplitViewController rootViewController.

    Declaration

    Swift

    public typealias SplitTransition = Transition<UISplitViewController>
  • TabBarTransition offers transitions that can be used with a UITabBarController rootViewController.

    Declaration

    Swift

    public typealias TabBarTransition = Transition<UITabBarController>
  • ViewTransition offers transitions common to any UIViewController rootViewController.

    Declaration

    Swift

    public typealias ViewTransition = Transition<UIViewController>
  • A WeakRouter is a weak version of a router object to be used in view controllers or view models.

    Note

    Do not create a WeakRouter from a StrongRouter since StrongRouter is only another wrapper and does not represent the might instantly. Also keep in mind that once the original router object has been deallocated, calling trigger on this wrapper will have no effect.

    Declaration

    Swift

    public typealias WeakRouter<RouteType> = WeakErased<StrongRouter<RouteType>> where RouteType : Route