CoreStoreObjectOrderedDiff
public final class CoreStoreObjectOrderedDiff<D> where D : CoreStoreObject
The object containing the changeset for an observed RelationshipContainer.Ordered property.
-
Indicates the kind of change. See the comments for
NSObject.observeValue(forKeyPath:of:change:context:)for more information.Declaration
Swift
public let kind: NSKeyValueChange -
newValueandoldValuewill only be non-nil if.new/.oldis passed toobserve(). In general, get the most up to date value by accessing it directly on the observed object instead.Declaration
Swift
public private(set) lazy var newValue: [D] { get set } -
newValueandoldValuewill only be non-nil if.new/.oldis passed toobserve(). In general, get the most up to date value by accessing it directly on the observed object instead.Declaration
Swift
public private(set) lazy var oldValue: [D] { get set } -
indexeswill benilunless the observed KeyPath refers to an ordered to-many propertyDeclaration
Swift
public let indexes: IndexSet -
‘isPrior’ will be
trueif this change observation is being sent before the change happens, due to.priorbeing passed toobserve()Declaration
Swift
public let isPrior: Bool
View on GitHub
CoreStoreObjectOrderedDiff Class Reference