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

    updatedIndexes

    Collection of Updated Indexes

    removedIndexes

    Collection of Removed Indexes

    addedIndexes

    Collection of Added Indexes