PostRoutingTask

public protocol PostRoutingTask

The task to be executed after navigation process happened.

Associated types

  • UIViewController type associated with this PostRoutingTask

    Declaration

    Swift

    associatedtype ViewController : UIViewController
  • Context type associated with this PostRoutingTask

    Declaration

    Swift

    associatedtype Context

Methods to implement

  • Method to be executed by the Router after all the view controllers have been built into the stack.

    Declaration

    Swift

    func perform(on viewController: ViewController, with context: Context, routingStack: [UIViewController])

    Parameters

    viewController

    The UIViewController instance that this post-task has been attached to

    context

    The Context instance provided to the Router

    routingStack

    An array of all the view controllers that been built by the Router to reach the final destination

Available where Context == Any?

  • perform(on:routingStack:) Extension method

    Method to be executed by the Router after all the view controllers have been built into the stack.

    Declaration

    Swift

    func perform(on viewController: ViewController, routingStack: [UIViewController])

    Parameters

    viewController

    The UIViewController instance that this post-task has been attached to

    routingStack

    An array of all the view controllers that been built by the Router to reach the final destination

Available where Context == Void

  • perform(on:routingStack:) Extension method

    Method to be executed by the Router after all the view controllers have been built into the stack.

    Declaration

    Swift

    func perform(on viewController: ViewController, routingStack: [UIViewController])

    Parameters

    viewController

    The UIViewController instance that this post-task has been attached to

    routingStack

    An array of all the view controllers that been built by the Router to reach the final destination