RoutingInterceptable

public protocol RoutingInterceptable : UIViewController

UIViewController that conforms to this protocol may overtake the control of the view controllers stack and forbid the Router to dismiss or cover itself with another view controller. Return false if the view controller can be dismissed.

Properties to implement

  • true: if a view controller can be dismissed or covered by the Router, false otherwise.

    Declaration

    Swift

    var canBeDismissed: Bool { get }
  • overriddenParentViewController Default implementation

    Returns UIViewController that Router should consider as a parent UIViewController. It may be useful to override it when you are building complicated custom ContainerViewControllers.

    Default Implementation

    Default implementation returns regular UIViewController.parent

    Declaration

    Swift

    var overriddenParentViewController: UIViewController? { get }