---
title: requiredThickness
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsrulerview/requiredthickness
---

# requiredThickness

The thickness needed for proper tiling of the receiver within an NSScrollView.

## Declaration

```swift
var requiredThickness: CGFloat { get }
```

## Discussion

Discussion This thickness is the height of a horizontal ruler and the width of a vertical ruler. The required thickness is the sum of the thicknesses of the ruler area, the marker area, and the accessory view.

## See Also

### Ruler layout

- [scrollView](appkit/nsrulerview/scrollview.md)
- [orientation](appkit/nsrulerview/orientation-swift.property.md)
- [NSRulerView.Orientation](appkit/nsrulerview/orientation-swift.enum.md)
- [reservedThicknessForAccessoryView](appkit/nsrulerview/reservedthicknessforaccessoryview.md)
- [reservedThicknessForMarkers](appkit/nsrulerview/reservedthicknessformarkers.md)
- [ruleThickness](appkit/nsrulerview/rulethickness.md)
- [baselineLocation](appkit/nsrulerview/baselinelocation.md)
- [isFlipped](appkit/nsrulerview/isflipped.md)
