---
title: "insertItems(withIdentifiers:afterItemWithIdentifier:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nsdiffabledatasourcesnapshotreference/insertitems(withidentifiers:afteritemwithidentifier:)"
---

# insertItems(withIdentifiers:afterItemWithIdentifier:)

Inserts the provided items immediately after the item with the specified identifier in the snapshot.

## Declaration

```swift
func insertItems(withIdentifiers identifiers: [Any], afterItemWithIdentifier itemIdentifier: Any)
```

## Parameters

- `identifiers`: The array of identifiers corresponding to the items to add to the snapshot.
- `itemIdentifier`: The identifier of the item after which to insert the new items.

## See Also

### Inserting items and sections

- [insertItems(withIdentifiers:beforeItemWithIdentifier:)](uikit/nsdiffabledatasourcesnapshotreference/insertitems(withidentifiers:beforeitemwithidentifier:).md)
- [insertSections(withIdentifiers:afterSectionWithIdentifier:)](uikit/nsdiffabledatasourcesnapshotreference/insertsections(withidentifiers:aftersectionwithidentifier:).md)
- [insertSections(withIdentifiers:beforeSectionWithIdentifier:)](uikit/nsdiffabledatasourcesnapshotreference/insertsections(withidentifiers:beforesectionwithidentifier:).md)
