Type Aliases
The following type aliases are available globally.
-
A type-erased Coordinator (
AnyCoordinator
) with aUINavigationController
as rootViewController.Declaration
Swift
public typealias AnyNavigationCoordinator<RouteType> = AnyCoordinator<RouteType, NavigationTransition> where RouteType : Route
-
A type-erased Coordinator (
AnyCoordinator
) with aUITabBarController
as rootViewController.Declaration
Swift
public typealias AnyTabBarCoordinator<RouteType> = AnyCoordinator<RouteType, TabBarTransition> where RouteType : Route
-
A type-erased Coordinator (
AnyCoordinator
) with aUIViewController
as rootViewController.Declaration
Swift
public typealias AnyViewCoordinator<RouteType> = AnyCoordinator<RouteType, ViewTransition> where RouteType : Route
-
A BasicCoordinator with a
UINavigationController
as its rootViewController.Declaration
Swift
public typealias BasicNavigationCoordinator<R> = BasicCoordinator<R, NavigationTransition> where R : Route
-
A BasicCoordinator with a
UIViewController
as its rootViewController.Declaration
Swift
public typealias BasicViewCoordinator<R> = BasicCoordinator<R, ViewTransition> where R : Route
-
A BasicCoordinator with a
UITabBarController
as 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
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>
-
Please use
StrongRouter
,WeakRouter
orUnownedRouter
instead.Note
Use aStrongRouter
, if you need to hold a router even when it is not in the view hierarchy. Use aWeakRouter
orUnownedRouter
when you are accessing any router from the view hierarchy.Declaration
Swift
@available(iOS, deprecated) public typealias AnyRouter<RouteType> = UnownedRouter<RouteType> where RouteType : Route
-
An
UnownedRouter
is an unowned version of a router object to be used in view controllers or view models.Note
Do not create anUnownedRouter
from aStrongRouter
sinceStrongRouter
is 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
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 aWeakRouter
from aStrongRouter
sinceStrongRouter
is only another wrapper and does not represent the might instantly. Also keep in mind that once the original router object has been deallocated, callingtrigger
on this wrapper will have no effect.Declaration
Swift
public typealias WeakRouter<RouteType> = WeakErased<StrongRouter<RouteType>> where RouteType : Route