<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrubberDataSource/scrubber(_:viewForItemAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSScrubberDataSource(im)scrubber:viewForItemAtIndex:"
  },
  "title" : "scrubber(_:viewForItemAt:)"
}
-->

# scrubber(_:viewForItemAt:)

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

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

A configured item view object.

---

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)