CollectionChanges
public struct CollectionChanges<C> where C : Collection
Struct that contains information about added/removed/updated indexes Indexes are represented by any colection:
Usage example:
let changes = CollectionChanges<[Int]>(updatedIndexes: [0,2,3],
emovedIndexes: [1],
addedIndexes: [4])
-
Contains updated indexes
Declaration
Swift
public let updatedIndexes: C -
Contains removed indexes
Declaration
Swift
public let removedIndexes: C -
Contains added indexes
Declaration
Swift
public let addedIndexes: C -
initialize changes
Declaration
Swift
public init(updatedIndexes: C, removedIndexes: C, addedIndexes: C)Parameters
updatedIndexesCollection of Updated Indexes
removedIndexesCollection of Removed Indexes
addedIndexesCollection of Added Indexes
CollectionChanges Structure Reference