-
ChainableRoutebuilder is identical to first route builderDeclaration
Swift
public typealias Builder = T.Builder -
First route in the chain
Declaration
Swift
public let headRoute: T -
Other routes in the chain
Declaration
Swift
public let tailRoute: U -
Context, that will be used to build next View in the chain
Declaration
Swift
public let tailContext: U.Builder.Context -
Returns headRoute builder
Declaration
Swift
public var builder: T.Builder { get } -
Returns NonTransition instance.
Declaration
Swift
public var transition: NonTransition { get } -
Declaration
Swift
public init(headRoute: T, tailRoute: U, tailContext: U.Builder.Context)Parameters
headRouteRoute to be performed first
tailRouteRoute to be performed next in the chain
tailContextContext required to build view for next route in the chain
-
Performs
headRoute, and once it completes, follows it withtailRoute, and once that is completed, calls completion closure.Declaration
Swift
open func perform(withViewFinder viewFinder: ViewFinder, context: T.Builder.Context, completion: ((Bool) -> Void)?)Parameters
viewFinderobject responsible for finding view on which route should be performed.
contextobject that will be used to build view to navigate to, if needed. In this case, it’s context for
headRoute.completionwill be called once head and tail routes are completed.
View on GitHub
Install in Dash
ChainableRoute Class Reference