ClassWithContextFinder
public struct ClassWithContextFinder<VC, C> : StackIteratingFinder where VC : UIViewController, VC : ContextChecking, C == VC.Context
A default implementation of the view controllers finder, that searches for a view controller by its name
and its Context
instance.
The view controller should conform to the ContextChecking
to be used with this finder.
-
Declaration
Swift
public typealias ViewController = VC
-
Declaration
Swift
public typealias Context = C
-
A
StackIterator
is to be used byClassWithContextFinder
Declaration
Swift
public let iterator: StackIterator
-
Constructor
Declaration
Swift
public init(iterator: StackIterator = RouteComposerDefaults.shared.stackIterator)
Parameters
iterator
A
StackIterator
is to be used byClassWithContextFinder
-
Declaration
Swift
public func isTarget(_ viewController: VC, with context: C) -> Bool
-
Constructor
Parameters
- options: A combination of the
SearchOptions
- startingPoint:
DefaultStackIterator.StartingPoint
value - windowProvider:
WindowProvider
instance. - containerAdapterLocator: A
ContainerAdapterLocator
instance.
Declaration
Swift
init(options: SearchOptions, startingPoint: DefaultStackIterator.StartingPoint = .topmost, windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider, containerAdapterLocator: ContainerAdapterLocator = RouteComposerDefaults.shared.containerAdapterLocator)
- options: A combination of the