StackIteratingFinder
@MainActor
public protocol StackIteratingFinder : Finder
StackIteratingFinder iterates through the view controllers stack
following the search options provided. It simplifies the creation of the finders for a hosting app.
-
Type of
UIViewControllerthatStackIteratingFindercan findDeclaration
Swift
associatedtype ViewController -
Type of
Contextobject thatStackIteratingFindercan deal withDeclaration
Swift
associatedtype Context
-
StackIteratorto be used byStackIteratingFinderDeclaration
Swift
@MainActor var iterator: StackIterator { get }
-
The method to be implemented by the
StackIteratingFinderinstanceDeclaration
Swift
@MainActor func isTarget(_ viewController: ViewController, with context: Context) -> BoolParameters
viewControllerA view controller in the current view controller stack
contextReturn Value
true if this view controller is the one that
Finderis looking for, false otherwise. -
findViewController(with:Extension method) Declaration
Swift
@MainActor func findViewController(with context: Context) throws -> ViewController?