---
title: backgroundView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewheaderfooterview/backgroundview
---

# backgroundView

The background view of the header or footer.

## Declaration

```swift
var backgroundView: UIView? { get set }
```

## Mentioned in

Adding headers and footers to table sections

## Discussion

Discussion The view in this property appears behind the view in the contentView property and displays static background content behind the header or footer. For example, you might assign an image view to this property and use it to display a custom background image. A background configuration is mutually exclusive with background views, so you must use one approach or the other. Setting a non-nil value for this property resets backgroundConfiguration to nil.

## See Also

### Configuring the background

- [defaultBackgroundConfiguration()](uikit/uitableviewheaderfooterview/defaultbackgroundconfiguration().md)
- [backgroundConfiguration](uikit/uitableviewheaderfooterview/backgroundconfiguration-52wng.md)
- [automaticallyUpdatesBackgroundConfiguration](uikit/uitableviewheaderfooterview/automaticallyupdatesbackgroundconfiguration.md)
