PushReplacingLastAction

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

Pushes a view controller into the UINavigationController‘s child stack replacing the last one

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

  • Pushes a view controller into the UINavigationController‘s child stack replacing the last one

    Declaration

    Swift

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