Contents

init(insert:insertedObjects:remove:removedObjects:additionalChanges:)

Creates an ordered collection difference from arrays of inserted and removed objects with corresponding sets of indices, in addition to an array of ordered collection changes.

Declaration

init(insert inserts: IndexSet, insertedObjects: [Any]?, remove removes: IndexSet, removedObjects: [Any]?, additionalChanges changes: [NSOrderedCollectionChange])

Parameters

  • inserts:

    An index set that represents the index values to associate with the objects in the provided array of inserted objects.

  • insertedObjects:

    An array of objects the ordered collection difference will insert.

  • removes:

    An index set that represents the index values to associate with the objects in the provided array of removed objects.

  • removedObjects:

    An array of objects the ordered collection difference will remove.

  • changes:

    An array of ordered collection changes.

See Also

Creating a Collection Difference Object