CollectionChange
public enum CollectionChange<CollectionType>
Used to track change events in collection.
-
.initialindicates that the initial results and the collection can now be used without performing any blocking work. However the collection may be updated in the near future.Declaration
Swift
case initial(CollectionType) -
.updateindicates that the objects in collection have changed.All three of the change arrays are always sorted in ascending order.
Declaration
Swift
case update(CollectionType, deletions: [Int], insertions: [Int], modifications: [Int])Parameters
deletionsThe indices in the previous version of the collection which were removed from this one.
insertionsThe indices in the new collection which were added in this version.
modificationsThe indices of the objects in the new collection which were modified in this version.
CollectionChange Enumeration Reference