---
title: NSScrubber.Alignment
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nsscrubber/alignment
---

# NSScrubber.Alignment

The specified preferred alignment of items within the scrubber, when they come to rest following a user’s scrolling or paging interaction.

## Declaration

```swift
enum Alignment
```

## Overview

Overview For details on how to choose the right alignment option for your app, see Choose a scrubber touch-interaction model.

## Topics

### Constants

- [NSScrubber.Alignment.center](appkit/nsscrubber/alignment/center.md)
- [NSScrubber.Alignment.leading](appkit/nsscrubber/alignment/leading.md)
- [NSScrubber.Alignment.none](appkit/nsscrubber/alignment/none.md)
- [NSScrubber.Alignment.trailing](appkit/nsscrubber/alignment/trailing.md)

### Initializers

- [init(rawValue:)](appkit/nsscrubber/alignment/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## 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)
- [itemAlignment](appkit/nsscrubber/itemalignment.md)
- [isContinuous](appkit/nsscrubber/iscontinuous.md)
