CurrentlyVisibleUpdatableViewFinder
open class CurrentlyVisibleUpdatableViewFinder<T> : UpdatableViewFinder where T : ViewController, T : ContextUpdatable
UpdatableViewFinder type that searches current view hierarchy to find view, that can be updated using Context. Uses CurrentlyVisibleViewFinder to search view hierarchy for currently visible view.
-
Object responsible for providing root view of interface hierarchy.
Declaration
Swift
public let rootProvider: RootViewProvider -
Creates
CurrentlyVisibleUpdatableViewFinder.Declaration
Swift
public init(rootProvider: RootViewProvider)Parameters
rootProviderObject responsible for providing root view of interface hierarchy.
-
Searches view hierarchy to find
View, that can be updated using providedContext. UsesCurrentlyVisibleViewFinderobject to find currently visible view.Declaration
Swift
open func findUpdatableView(for context: T.Context) -> T?Parameters
contextArgument, that can be used to update a
View.Return Value
Found
Viewto update, or nil.
View on GitHub
Install in Dash
CurrentlyVisibleUpdatableViewFinder Class Reference