---
title: "addAssets(_:)"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phassetcollectionchangerequest/addassets(_:)"
---

# addAssets(_:)

Adds the specified assets to the asset collection.

## Declaration

```swift
func addAssets(_ assets: any NSFastEnumeration)
```

## Parameters

- `assets`: An array of doc://com.apple.photokit/documentation/Photos/PHAsset objects to be added to the asset collection.

## Mentioned in

Requesting Changes to the Photo Library

## Discussion

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. note: Assets from My Photo Stream or iCloud Shared Albums and assets synced to the device through iTunes cannot be added to collections. Transient asset collections (such as those created with the transientAssetCollection(with:title:) method) do not support adding or removing content.

## See Also

### Modifying Asset Collections

- [init(for:)](photos/phassetcollectionchangerequest/init(for:).md)
- [init(for:assets:)](photos/phassetcollectionchangerequest/init(for:assets:).md)
- [title](photos/phassetcollectionchangerequest/title.md)
- [insertAssets(_:at:)](photos/phassetcollectionchangerequest/insertassets(_:at:).md)
- [removeAssets(_:)](photos/phassetcollectionchangerequest/removeassets(_:).md)
- [removeAssets(at:)](photos/phassetcollectionchangerequest/removeassets(at:).md)
- [replaceAssets(at:withAssets:)](photos/phassetcollectionchangerequest/replaceassets(at:withassets:).md)
- [moveAssets(at:to:)](photos/phassetcollectionchangerequest/moveassets(at:to:).md)
