StackPresentationHandler

public protocol StackPresentationHandler

Helper instance used to update the stack of UIViewControllers

Methods to implement

  • Dismisses all the UIViewControllers presented on top of the provided UIViewController.

    Declaration

    Swift

    func dismissPresented(from viewController: UIViewController,
                          animated: Bool,
                          completion: @escaping ((_: RoutingResult) -> Void))

    Parameters

    viewController

    UIViewController to dismiss presented UIViewControllers from.

    animated

    Update stack with animation where possible.

    completion

    Completion block

  • Makes the provided UIViewController visible in all the enclosing containers.

    Declaration

    Swift

    func makeVisibleInParentContainers(_ viewController: UIViewController,
                                       animated: Bool,
                                       completion: @escaping (RoutingResult) -> Void)

    Parameters

    viewController

    UIViewController to make visible.

    animated

    Update stack with animation where possible.

    completion

    Completion block