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

# rulersVisible

A Boolean that indicates whether the scroll view displays its rulers.

```
var rulersVisible: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the scroll view displays its rulers (creating them if needed). When the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, the scroll view doesn’t display its rulers.

---

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)