<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDiffableDataSourceSnapshotReference/insertItems(withIdentifiers:afterItemWithIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDiffableDataSourceSnapshot(im)insertItemsWithIdentifiers:afterItemWithIdentifier:"
  },
  "title" : "insertItems(withIdentifiers:afterItemWithIdentifier:)"
}
-->

# insertItems(withIdentifiers:afterItemWithIdentifier:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)