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

# scrubber(_:layout:sizeForItemAt:)

Asks the delegate for the size of each item in a scrubber whose items are arranged in a flow layout.

```
optional func scrubber(_ scrubber: NSScrubber, layout: NSScrubberFlowLayout, sizeForItemAt itemIndex: Int) -> NSSize
```

## Parameters

`scrubber`

The scrubber object displaying the items arranged in a flow layout.

`layout`

The layout object requesting the information.

`itemIndex`

The index of the item in the scrubber.

## Return Value

The width and height of the item at the specified index in the scrubber.

---

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)