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

# backgroundView

The view to use as the background of the cell.

## Declaration

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

## Discussion

Discussion UITableViewCell adds the background view as a subview behind all other views and uses its current frame location. 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

### Related Documentation

- [contentView](uikit/uitableviewcell/contentview.md)

### Configuring the background

- [defaultBackgroundConfiguration()](uikit/uitableviewcell/defaultbackgroundconfiguration().md)
- [backgroundConfiguration](uikit/uitableviewcell/backgroundconfiguration-24e8e.md)
- [automaticallyUpdatesBackgroundConfiguration](uikit/uitableviewcell/automaticallyupdatesbackgroundconfiguration.md)
- [selectedBackgroundView](uikit/uitableviewcell/selectedbackgroundview.md)
- [multipleSelectionBackgroundView](uikit/uitableviewcell/multipleselectionbackgroundview.md)
