---
title: "insertItems(_:beforeItem:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nsdiffabledatasourcesectionsnapshotreference/insertitems(_:beforeitem:)"
---

# insertItems(_:beforeItem:)

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

## Declaration

```swift
func insertItems(_ items: [Any], beforeItem beforeIdentifier: Any)
```

## See Also

### Inserting items

- [insert(_:afterItem:)](uikit/nsdiffabledatasourcesectionsnapshotreference/insert(_:afteritem:).md)
- [insertItems(_:afterItem:)](uikit/nsdiffabledatasourcesectionsnapshotreference/insertitems(_:afteritem:).md)
- [insert(_:beforeItem:)](uikit/nsdiffabledatasourcesectionsnapshotreference/insert(_:beforeitem:).md)
