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

# knobStyle

The scroller’s knob style.

```
var knobStyle: NSScroller.KnobStyle { get set }
```

## Discussion

The value of this property does not affect legacy scrollers. [`NSScroller.KnobStyle.default`](/documentation/AppKit/NSScroller/KnobStyle-swift.enum/default) is appropriate for a wide range of content, but in some cases choosing an alternative knob style may enhance visibility of the scroller knob atop some kinds of content.

For a list of possible values, see [`NSScroller.KnobStyle`](/documentation/AppKit/NSScroller/KnobStyle-swift.enum).

---

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)