Inserts the specified collections into the collection list at the specified indexes.
- iOS 8+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10+
An array of
PHCollectionobjects (asset collections or other collection lists) to be inserted into the collection list.
The indexes at which the collections should be inserted. The count of locations in this index set must equal the count of collections.
To ensure that the index set you specify is valid even if the collection list has changed since you fetched it, create a change request with a snapshot of the collection list’s contents using the
init(for: method before inserting child collections.
For a detailed discussion of how the index set you specify maps to insertions in the collection list, see the similar