Property

public protocol Property : AnyProperty
  • Declaration

    Swift

    associatedtype Value
  • Declaration

    Swift

    associatedtype Formatter : Formatter
  • Declaration

    Swift

    var snapshot: Snapshot<Value> { get }
  • value Default implementation

    Default Implementation

    Declaration

    Swift

    var value: Value { get }
  • Declaration

    Swift

    var formatter: Formatter { get }
  • snapshots Default implementation

    An asynchronous stream of snapshots, starting with the current snapshot.

    Default Implementation

    Declaration

    Swift

    var snapshots: AsyncStream<Snapshot<Value>> { get }
  • A Combine publisher, starting with the current snapshot.

    Declaration

    Swift

    var snapshotsPublisher: AnyPublisher<Snapshot<Value>, Never> { get }
  • date Extension method

    The date of the latest value.

    Declaration

    Swift

    public var date: Date { get }
  • values Extension method

    An asynchronous stream of values, starting with the current value.

    Declaration

    Swift

    public var values: AsyncStream<Value> { get }
  • typeErasedValue Extension method

    The type-erased current value of the property.

    Declaration

    Swift

    public var typeErasedValue: Any? { get }
  • typeErasedFormatter Extension method

    A type-erased formatter that can be used to build a human-friendly string from the value.

    Declaration

    Swift

    public var typeErasedFormatter: Foundation.Formatter { get }
  • typeErasedSnapshotPublisher Extension method

    Declaration

    Swift

    public var typeErasedSnapshotPublisher: AnyPublisher<AnySnapshot, Never> { get }
  • asReadOnlyProperty Extension method

    Declaration

    Swift

    public var asReadOnlyProperty: ReadOnlyProperty<Self> { get }