---
title: "insertItems(_:afterItem:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/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:)](appkit/nsdiffabledatasourcesnapshot-swift.struct/insertitems(_:beforeitem:).md)
- [insertSections(_:afterSection:)](appkit/nsdiffabledatasourcesnapshot-swift.struct/insertsections(_:aftersection:).md)
- [insertSections(_:beforeSection:)](appkit/nsdiffabledatasourcesnapshot-swift.struct/insertsections(_:beforesection:).md)
