InlineStackIteratingFinder
public struct InlineStackIteratingFinder<VC, C> : StackIteratingFinder where VC : UIViewController
InlineStackIteratingFinder
. Might be useful for the configuration testing.
-
Type of
UIViewController
thatFactory
can buildDeclaration
Swift
public typealias ViewController = VC
-
Context
to be passed intoUIViewController
Declaration
Swift
public typealias Context = C
-
Declaration
Swift
public var iterator: StackIterator
-
Constructor
Declaration
Swift
public init(iterator: StackIterator = RouteComposerDefaults.shared.stackIterator, _ inlineBock: @escaping (VC, C) -> Bool)
Parameters
iterator
A
StackIterator
is to be used byInlineStackIteratingFinder
inlineBock
A block to be called when
StackIteratingFinder.isTarget(...)
is requested. -
Declaration
Swift
public func isTarget(_ viewController: VC, with context: C) -> Bool
-
Constructor
Declaration
Swift
init(options: SearchOptions, startingPoint: DefaultStackIterator.StartingPoint = .topmost, windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider, containerAdapterLocator: ContainerAdapterLocator = RouteComposerDefaults.shared.containerAdapterLocator, predicate inlineBock: @escaping (VC, C) -> Bool)
Parameters
options
A combination of the
SearchOptions
startingPoint
windowProvider
WindowProvider
instance.containerAdapterLocator
A
ContainerAdapterLocator
instance.inlineBock
A block to be called when
StackIteratingFinder.isTarget(...)
is requested.