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

# contentInsets

The distance that the scroll view’s subviews are inset from the enclosing scroll view during tiling.

```
var contentInsets: NSEdgeInsets { get set }
```

## Discussion

When the value of this property is equal to `NSEdgeInsetsZero`, traditional tiling is performed. Rulers, headers, and other subviews are tiled with the [`contentView`](/documentation/AppKit/NSScrollView/contentView) frame filling the remaining space. When the value of this property is not equal to `NSEdgeInsetsZero`, the rulers, headers, and other subviews are inset as specified. The [`contentView`](/documentation/AppKit/NSScrollView/contentView) is placed underneath these sibling views and is only inset by the scroll view border and non-overlay scrollers.

See <doc://com.apple.documentation/documentation/Foundation/NSEdgeInsets> for possible values.

When the value of the [`automaticallyAdjustsContentInsets`](/documentation/AppKit/NSScrollView/automaticallyAdjustsContentInsets) property is <doc://com.apple.documentation/documentation/Swift/true>, any value of this property is overridden during tiling.

---

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)