SplitCoordinator

open class SplitCoordinator<RouteType> : BaseCoordinator<RouteType, SplitTransition> where RouteType : Route

SplitCoordinator can be used as a basis for a coordinator with a rootViewController of type UISplitViewController.

You can use all SplitTransitions and get an initializer to set a master and (optional) detail presentable.

  • Declaration

    Swift

    public override init(rootViewController: RootViewController = .init(), initialRoute: RouteType?)
  • Creates a SplitCoordinator and sets the specified presentables as the rootViewController’s viewControllers.

    Declaration

    Swift

    public init(rootViewController: RootViewController = .init(), master: Presentable, detail: Presentable?)

    Parameters

    master

    The presentable to be shown as master in the UISplitViewController.

    detail

    The presentable to be shown as detail in the UISplitViewController. This is optional due to the fact that it might not be useful to have a detail page right away on a small-screen device.