<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrubber/itemAlignment",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScrubber(py)itemAlignment"
  },
  "title" : "itemAlignment"
}
-->

# itemAlignment

A setting that specifies the snapping behavior of items in the scrubber.

```
var itemAlignment: NSScrubber.Alignment { get set }
```

## Discussion

Set the value to something other than [`NSScrubber.Alignment.none`](/documentation/AppKit/NSScrubber/Alignment/none) to ensure that an item is aligned with the specified position when the scrubber comes to rest.

The default value is [`NSScrubber.Alignment.none`](/documentation/AppKit/NSScrubber/Alignment/none).

---

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)