---
title: "insertItems(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscrubber/insertitems(at:)"
---

# insertItems(at:)

Inserts new items at the specified indexes into the scrubber.

## Declaration

```swift
func insertItems(at indexes: IndexSet)
```

## Parameters

- `indexes`: An index set (doc://com.apple.documentation/documentation/Foundation/IndexSet) of the indexes of the items to insert.

## Discussion

Discussion The scrubber requests the view for each index from its data source.

## See Also

### Inserting, moving, and deleting items

- [moveItem(at:to:)](appkit/nsscrubber/moveitem(at:to:).md)
- [removeItems(at:)](appkit/nsscrubber/removeitems(at:).md)
