RoutingObserver
public protocol RoutingObserver
An instance observing all controllers that are presented by the wireframe
-
willPresent(controller:routeResult:routingPresenter:wireframe:)
Default implementationEvent that indicates that a view controller will be presented
Default Implementation
Declaration
Swift
func willPresent(controller: UIViewController, routeResult: RouteResult, routingPresenter: RoutingPresenter?, wireframe: Wireframe) throws
Parameters
controller
The view controller that will be presented
routePattern
The route pattern triggering the presentation
routingOption
The RoutingOption describing how the controller will be presented
parameters
The parameters (data) extraced from the route, or given by the sender
routingPresenter
The RoutingPresenter responsible for presenting the controller
wireframe
The wireframe presenting the view controller
-
didPresent(controller:routeResult:routingPresenter:wireframe:)
Default implementationEvent that indicates that a view controller was presented
Default Implementation
Declaration
Swift
func didPresent(controller: UIViewController, routeResult: RouteResult, routingPresenter: RoutingPresenter?, wireframe: Wireframe)
Parameters
controller
The view controller that will be presented
routePattern
The route pattern triggering the presentation
routingOption
The RoutingOption describing how the controller will be presented
parameters
The parameters (data) extraced from the route, or given by the sender
routingPresenter
The RoutingPresenter responsible for presenting the controller
wireframe
The wireframe presenting the view controller