SingleNavigationRouter
public struct SingleNavigationRouter<R> : Router where R : Router
extension SingleNavigationRouter: InterceptableRouter where R: InterceptableRouter
The Router
proxy guarantees that not more than one navigation will happen simultaneously.
It is useful to avoid situations when the application can not control the amount of navigations (for example, a navigation triggered by the push notifications)
-
Shared
SingleNavigationLock
instanceDeclaration
Swift
public let lock: SingleNavigationLock
-
Constructor
Declaration
Swift
public init(router: R, lock: SingleNavigationLock)
Parameters
router
Router
instance to proxy.lock
Shared
SingleNavigationLock
instance. -
Declaration
Swift
public func navigate<Context>(to step: DestinationStep<some UIViewController, Context>, with context: Context, animated: Bool, completion: ((RoutingResult) -> Void)?) throws
-
Declaration
Swift
public mutating func add<RI>(_ interceptor: RI) where RI : RoutingInterceptor, RI.Context == Any?
-
Declaration
Swift
public mutating func add<CT>(_ contextTask: CT) where CT : ContextTask, CT.Context == Any?, CT.ViewController == UIViewController
-
Declaration
Swift
public mutating func add<PT>(_ postTask: PT) where PT : PostRoutingTask, PT.Context == Any?