---
title: "scrubber(_:viewForItemAt:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscrubberdatasource/scrubber(_:viewforitemat:)"
---

# scrubber(_:viewForItemAt:)

Asks the data source object for the view the corresponds to the specified item in the scrubber.

## Declaration

```swift
@MainActor func scrubber(_ scrubber: NSScrubber, viewForItemAt index: Int) -> NSScrubberItemView
```

## Parameters

- `scrubber`: The scrubber requesting the view.
- `index`: The index that specifies the location of the item in the scrubber.

## Return Value

Return Value A configured item view object.
