ObserverType

Undocumented

  • Access a given property of the received data structre.

    Parameter

    Parameter lens: The lens to be used for data access.

    Returns

    An observer for a property of the current data structure.

    Declaration

    Swift

    public func to<T>(_ lens: Lens<E, T>, with initial: E) -> AnyObserver<T>

    Parameters

    lens

    The lens to be used for data access.

    Return Value

    An observer for a property of the current data structure.