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

    rootProvider

    Object responsible for providing root view of interface hierarchy.

  • Searches view hierarchy to find View, that can be updated using provided Context. Uses CurrentlyVisibleViewFinder object to find currently visible view.

    Declaration

    Swift

    open func findUpdatableView(for context: T.Context) -> T?

    Parameters

    context

    Argument, that can be used to update a View.

    Return Value

    Found View to update, or nil.