<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrubberLayoutAttributes/init(forItemAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScrubberLayoutAttributes(cm)layoutAttributesForItemAtIndex:"
  },
  "title" : "init(forItemAt:)"
}
-->

# init(forItemAt:)

Creates a new layout attributes object for the specified scrubber item index.

```
convenience init(forItemAt index: Int)
```

## Parameters

`index`

The index of the scrubber item that this layout attributes object represents.

## Return Value

A layout attributes object configured for the specified index.

---

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)