PushAsRootAction

@MainActor
public struct PushAsRootAction<ViewController> : ContainerAction where ViewController : UINavigationController

Replaces all the child view controllers in the UINavigationController‘s child stack

Methods

  • Declaration

    Swift

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

    Swift

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

Available where ViewController == UINavigationController

  • Replaces all the child view controllers in the UINavigationController‘s children stack

    Declaration

    Swift

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