StackIteratingFinder
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
UIViewController
thatStackIteratingFinder
can findDeclaration
Swift
associatedtype ViewController
-
Type of
Context
object thatStackIteratingFinder
can deal withDeclaration
Swift
associatedtype Context
-
StackIterator
to be used byStackIteratingFinder
Declaration
Swift
var iterator: StackIterator { get }
-
The method to be implemented by the
StackIteratingFinder
instanceDeclaration
Swift
func isTarget(_ viewController: ViewController, with context: Context) -> Bool
Parameters
viewController
A view controller in the current view controller stack
context
Return Value
true if this view controller is the one that
Finder
is looking for, false otherwise. -
findViewController(with:
Extension method) Declaration
Swift
func findViewController(with context: Context) throws -> ViewController?