---
title: selectedBackgroundView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewcell/selectedbackgroundview
---

# selectedBackgroundView

The view that displays just above the background view for a selected cell.

## Declaration

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

## Discussion

Discussion You can use this view to give a selected cell a custom appearance. When the cell has a selected state, this view layers above the backgroundView and behind the contentView. 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)
- [backgroundView](uikit/uicollectionviewcell/backgroundview.md)
