Property
public protocol Property : AnyProperty
-
Declaration
Swift
associatedtype Value
-
Declaration
Swift
associatedtype Formatter : Formatter
-
value
Default implementationDefault Implementation
Declaration
Swift
var value: Value { get }
-
Declaration
Swift
var formatter: Formatter { get }
-
snapshots
Default implementation -
date
Extension methodThe date of the latest value.
Declaration
Swift
public var date: Date { get }
-
values
Extension methodAn asynchronous stream of values, starting with the current value.
Declaration
Swift
public var values: AsyncStream<Value> { get }
-
typeErasedValue
Extension methodThe type-erased current value of the property.
Declaration
Swift
public var typeErasedValue: Any? { get }
-
typeErasedFormatter
Extension methodA 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 methodDeclaration
Swift
public var typeErasedSnapshotPublisher: AnyPublisher<AnySnapshot, Never> { get }
-
asReadOnlyProperty
Extension methodDeclaration
Swift
public var asReadOnlyProperty: ReadOnlyProperty<Self> { get }