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

# contentView

The content view to extend to fill the NSBackgroundExtensionView.

## Declaration

```swift
var contentView: NSView? { get set }
```

## Discussion

Discussion The content view will be added as a subview of the extension view and placed within the safe area by default. See automaticallyPlacesContentView to customize the layout.
