Type Aliases
The following type aliases are available globally.
-
A type-erased Coordinator (
AnyCoordinator) with aUINavigationControlleras rootViewController.Declaration
Swift
public typealias AnyNavigationCoordinator<RouteType> = AnyCoordinator<RouteType, NavigationTransition> where RouteType : Route -
A type-erased Coordinator (
AnyCoordinator) with aUITabBarControlleras rootViewController.Declaration
Swift
public typealias AnyTabBarCoordinator<RouteType> = AnyCoordinator<RouteType, TabBarTransition> where RouteType : Route -
A type-erased Coordinator (
AnyCoordinator) with aUIViewControlleras rootViewController.Declaration
Swift
public typealias AnyViewCoordinator<RouteType> = AnyCoordinator<RouteType, ViewTransition> where RouteType : Route
-
A BasicCoordinator with a
UINavigationControlleras its rootViewController.Declaration
Swift
public typealias BasicNavigationCoordinator<R> = BasicCoordinator<R, NavigationTransition> where R : Route -
A BasicCoordinator with a
UIViewControlleras its rootViewController.Declaration
Swift
public typealias BasicViewCoordinator<R> = BasicCoordinator<R, ViewTransition> where R : Route -
A BasicCoordinator with a
UITabBarControlleras its rootViewController.Declaration
Swift
public typealias BasicTabBarCoordinator<R> = BasicCoordinator<R, TabBarTransition> where R : Route
-
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
UINavigationControlleras rootViewController.Declaration
Swift
public typealias NavigationTransition = Transition<UINavigationController>
-
PageTransition offers transitions that can be used with a
UIPageViewControllerrootViewController.Declaration
Swift
public typealias PageTransition = Transition<UIPageViewController>
-
SplitTransition offers different transitions common to a
UISplitViewControllerrootViewController.Declaration
Swift
public typealias SplitTransition = Transition<UISplitViewController>
-
TabBarTransition offers transitions that can be used with a
UITabBarControllerrootViewController.Declaration
Swift
public typealias TabBarTransition = Transition<UITabBarController>
-
Please use
StrongRouter,WeakRouterorUnownedRouterinstead.Note
Use aStrongRouter, if you need to hold a router even when it is not in the view hierarchy. Use aWeakRouterorUnownedRouterwhen you are accessing any router from the view hierarchy.Declaration
Swift
@available(iOS, deprecated) public typealias AnyRouter<RouteType> = UnownedRouter<RouteType> where RouteType : Route -
An
UnownedRouteris an unowned version of a router object to be used in view controllers or view models.Note
Do not create anUnownedRouterfrom aStrongRoutersinceStrongRouteris only another wrapper and does not represent the might instantlyDeclaration
Swift
public typealias UnownedRouter<RouteType> = UnownedErased<StrongRouter<RouteType>> where RouteType : Route
-
ViewTransition offers transitions common to any
UIViewControllerrootViewController.Declaration
Swift
public typealias ViewTransition = Transition<UIViewController>
-
A
WeakRouteris a weak version of a router object to be used in view controllers or view models.Note
Do not create aWeakRouterfrom aStrongRoutersinceStrongRouteris only another wrapper and does not represent the might instantly. Also keep in mind that once the original router object has been deallocated, callingtriggeron this wrapper will have no effect.Declaration
Swift
public typealias WeakRouter<RouteType> = WeakErased<StrongRouter<RouteType>> where RouteType : Route
View on GitHub
Type Aliases Reference