---
title: "insertItems(_:afterItem:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nsdiffabledatasourcesnapshot-swift.struct/insertitems(_:afteritem:)"
---

# insertItems(_:afterItem:)

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

## Declaration

```swift
mutating func insertItems(_ identifiers: [ItemIdentifierType], afterItem afterIdentifier: ItemIdentifierType)
```

## Parameters

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

## See Also

### Inserting items and sections

- [insertItems(_:beforeItem:)](uikit/nsdiffabledatasourcesnapshot-swift.struct/insertitems(_:beforeitem:).md)
- [insertSections(_:afterSection:)](uikit/nsdiffabledatasourcesnapshot-swift.struct/insertsections(_:aftersection:).md)
- [insertSections(_:beforeSection:)](uikit/nsdiffabledatasourcesnapshot-swift.struct/insertsections(_:beforesection:).md)
