Contents

addAssets(_:)

Adds the specified assets to the asset collection.

Declaration

func addAssets(_ assets: any NSFastEnumeration)

Parameters

  • assets:

    An array of Phasset objects to be added to the asset collection.

Mentioned in

Discussion

If you created the change request with a snapshot of the asset collection’s contents using the init(for:assets:) method, Photos inserts the new assets after the existing assets in the collection. Otherwise, the arrangement of the new assets relative to others in the collection is undefined.

See Also

Modifying Asset Collections