PushOnToDetailsAction

@MainActor
public struct PushOnToDetailsAction<ViewController> : ContainerAction where ViewController : UISplitViewController

Pushes a view controller onto the detail stack in the UISplitViewController, where the detail is a UINavigationController

Methods

  • Declaration

    Swift

    @MainActor
    public func perform(embedding viewController: UIViewController, in childViewControllers: inout [UIViewController]) throws
  • Declaration

    Swift

    @MainActor
    public func perform(with viewController: UIViewController,
                        on splitController: ViewController,
                        animated: Bool,
                        completion: @escaping (_: RoutingResult) -> Void)

Available where ViewController == UISplitViewController

  • Pushes a view controller onto the detail stack in the UISplitViewController. Requires the root detail view controller to be the UINavigationController

    Declaration

    Swift

    @MainActor
    static var pushOnToDetails: `Self` { get }