---
title: autohidesScrollers
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrollview/autohidesscrollers
---

# autohidesScrollers

A Boolean that indicates whether the scroll view automatically hides its scroll bars when they are not needed.

## Declaration

```swift
var autohidesScrollers: Bool { get set }
```

## Discussion

Discussion The horizontal and vertical scroll bars are hidden independently of each other. When the value of this property is true and the content of the scroll view doesn’t extend beyond the size of the clip view on a given axis, the scroller on that axis is removed to leave more room for the content. note: The autohidesScrollers property introduced in OS X v10.3, while still relevant for legacy-style scrollers, does not apply to the automatic hiding behavior of overlay-style scrollers. The property may still be set, but is ignored by a scroll view that’s using overlay scrollers.

## See Also

### Related Documentation

- [scrollerStyle](appkit/nsscrollview/scrollerstyle.md)

### Managing Scrollers

- [horizontalScroller](appkit/nsscrollview/horizontalscroller.md)
- [hasHorizontalScroller](appkit/nsscrollview/hashorizontalscroller.md)
- [verticalScroller](appkit/nsscrollview/verticalscroller.md)
- [hasVerticalScroller](appkit/nsscrollview/hasverticalscroller.md)
