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

# horizontalScroller

The scroll view’s horizontal scroller.

```
var horizontalScroller: NSScroller? { get set }
```

## Discussion

The value of this property is `nil` if the scroll view has no horizontal scroller.

You can access the horizontal scroller using this property even if the scroll view isn’t currently displaying it. To make sure the scroller is visible, set [`hasHorizontalScroller`](/documentation/AppKit/NSScrollView/hasHorizontalScroller) to <doc://com.apple.documentation/documentation/Swift/true>.

---

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)