---
title: contentView
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrollview/contentview
---

# contentView

The scroll view’s content view, the view that clips the document view.

## Declaration

```swift
var contentView: NSClipView { get set }
```

## Discussion

Discussion Setting the value of this property to an NSClipView that has a document view also sets the scroll view’s document view to be the document view of that NSClipView. The original content view retains its document view.

## See Also

### Managing the Views

- [documentView](appkit/nsscrollview/documentview.md)
- [addFloatingSubview(_:for:)](appkit/nsscrollview/addfloatingsubview(_:for:).md)
