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

# backgroundView

The view that displays behind the cell’s other content.

## Declaration

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

## Discussion

Discussion Use this property to assign a custom background view to the cell. The background view appears behind the content view and its frame automatically adjusts so that it fills the bounds of the cell. 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/uicollectionviewcell/defaultbackgroundconfiguration().md)
- [backgroundConfiguration](uikit/uicollectionviewcell/backgroundconfiguration-rgj4.md)
- [automaticallyUpdatesBackgroundConfiguration](uikit/uicollectionviewcell/automaticallyupdatesbackgroundconfiguration.md)
- [selectedBackgroundView](uikit/uicollectionviewcell/selectedbackgroundview.md)
