CollectionChange

public enum CollectionChange<CollectionType>

Used to track change events in collection.

  • .initial indicates 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)
  • .update indicates 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
    deletions

    The indices in the previous version of the collection which were removed from this one.

    insertions

    The indices in the new collection which were added in this version.

    modifications

    The indices of the objects in the new collection which were modified in this version.