ClassWithContextFinder
@MainActor
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
StackIteratoris to be used byClassWithContextFinderDeclaration
Swift
@MainActor public let iterator: StackIterator
-
Constructor
Declaration
Swift
@MainActor public init(iterator: StackIterator = RouteComposerDefaults.shared.stackIterator)Parameters
iteratorA
StackIteratoris to be used byClassWithContextFinder -
Declaration
Swift
@MainActor public func isTarget(_ viewController: VC, with context: C) -> Bool -
Constructor
Parameters
- options: A combination of the
SearchOptions - startingPoint:
DefaultStackIterator.StartingPointvalue - windowProvider:
WindowProviderinstance. - containerAdapterLocator: A
ContainerAdapterLocatorinstance.
Declaration
Swift
@MainActor init(options: SearchOptions, startingPoint: DefaultStackIterator.StartingPoint = .topmost, windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider, containerAdapterLocator: ContainerAdapterLocator = RouteComposerDefaults.shared.containerAdapterLocator) - options: A combination of the
-
A default implementation of the view controllers finder, that searches for a view controller by its name and its
Contextinstance.The view controller should conform to the
ContextCheckingto be used with this finder.Declaration
Swift
@MainActor static func classWithContextFinder(iterator: StackIterator = RouteComposerDefaults.shared.stackIterator) -> ClassWithContextFinder<VC, C>Parameters
iteratorA
StackIteratoris to be used byClassWithContextFinder -
A default implementation of the view controllers finder, that searches for a view controller by its name and its
Contextinstance.The view controller should conform to the
ContextCheckingto be used with this finder.Declaration
Swift
@MainActor static var classWithContextFinder: `Self` { get } -
A default implementation of the view controllers finder, that searches for a view controller by its name and its
Contextinstance.The view controller should conform to the
ContextCheckingto be used with this finder.Parameters
- options: A combination of the
SearchOptions - startingPoint:
DefaultStackIterator.StartingPointvalue - windowProvider:
WindowProviderinstance. - containerAdapterLocator: A
ContainerAdapterLocatorinstance.
Declaration
Swift
@MainActor static func classWithContextFinder(options: SearchOptions, startingPoint: DefaultStackIterator.StartingPoint = .topmost, windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider, containerAdapterLocator: ContainerAdapterLocator = RouteComposerDefaults.shared.containerAdapterLocator) -> Self - options: A combination of the