---
title: itemAlignment
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrubber/itemalignment
---

# itemAlignment

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

## Declaration

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

## Discussion

Discussion Set the value to something other than 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.

## See Also

### Changing the layout

- [scrubberLayout](appkit/nsscrubber/scrubberlayout.md)
- [mode](appkit/nsscrubber/mode-swift.property.md)
- [NSScrubber.Mode](appkit/nsscrubber/mode-swift.enum.md)
- [NSScrubber.Alignment](appkit/nsscrubber/alignment.md)
- [isContinuous](appkit/nsscrubber/iscontinuous.md)
