KeyValueObservedChange
public struct KeyValueObservedChange<Value> where Value : Decodable, Value : Encodable
Undocumented
-
Undocumented
Declaration
Swift
public typealias Kind = NSKeyValueChange
-
Undocumented
Declaration
Swift
public let kind: KeyValueObservedChange<Value>.Kind
-
newValue and oldValue will only be non-nil if .new/.old is passed to
observe()
. In general, get the most up to date value by accessing it directly on the observed object instead.Declaration
Swift
public let newValue: Value?
-
Undocumented
Declaration
Swift
public let oldValue: Value?
-
indexes will be nil unless the observed KeyPath refers to an ordered to-many property
Declaration
Swift
public let indexes: IndexSet?
-
‘isPrior’ will be true if this change observation is being sent before the change happens, due to .prior being passed to
observe()
Declaration
Swift
public let isPrior: Bool