---
title: contentView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewheaderfooterview/contentview
---

# contentView

The content view of the header or footer.

## Declaration

```swift
var contentView: UIView { get }
```

## Mentioned in

Adding headers and footers to table sections

## Discussion

Discussion To create your header or footer content, you add subviews to the view in this property. Your custom subviews represent the main content of your header or footer. Be sure to configure all subviews.

## See Also

### Managing the content

- [defaultContentConfiguration()](uikit/uitableviewheaderfooterview/defaultcontentconfiguration().md)
- [contentConfiguration](uikit/uitableviewheaderfooterview/contentconfiguration-6b4eg.md)
- [automaticallyUpdatesContentConfiguration](uikit/uitableviewheaderfooterview/automaticallyupdatescontentconfiguration.md)
