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

# mode

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

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

## Discussion

When set to [`NSScrubber.Mode.fixed`](/documentation/AppKit/NSScrubber/Mode-swift.enum/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`](/documentation/AppKit/NSScrubber/Mode-swift.enum/fixed).

When [`mode`](/documentation/AppKit/NSScrubber/mode-swift.property) is set to [`NSScrubber.Mode.free`](/documentation/AppKit/NSScrubber/Mode-swift.enum/free), panning over the scrubber scrolls the scrubber’s content. A user selects items by tapping on them.

---

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)