---
title: mode
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrubber/mode-swift.property
---

# mode

A setting that determines whether interaction with the scrubber is fixed or free.

## Declaration

```swift
var mode: NSScrubber.Mode { get set }
```

## Discussion

Discussion When set to NSScrubber.Mode.fixed, the scrubber’s content doesn’t scroll as the user pans. Instead, the element under the user’s finger is highlighted. The highlighted item becomes selected when the user completes the pan gesture. The default value is NSScrubber.Mode.fixed. When mode is set to NSScrubber.Mode.free, panning over the scrubber scrolls the scrubber’s content. A user selects items by tapping on them.

## See Also

### Changing the layout

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