---
title: backgroundConfiguration
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewcell/backgroundconfiguration-24e8e
---

# backgroundConfiguration

The current background configuration of the cell.

## Declaration

```swift
@MainActor @preconcurrency var backgroundConfiguration: UIBackgroundConfiguration? { get set }
```

## Discussion

Discussion UITableViewCell automatically sets up a default background configuration to provide its default appearance. Using a background configuration, you can obtain system default background styling for a variety of different cell states. Create a background configuration with one of the default system styles, customize the configuration to match your cell’s style as necessary, and assign the configuration to this property. var backgroundConfig = UIBackgroundConfiguration.listPlainCell()

// Set a nil background color to use the view's tint color.  backgroundConfig.backgroundColor = nil

cell.backgroundConfiguration = backgroundConfig  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 the following APIs to nil: backgroundColor backgroundView selectedBackgroundView multipleSelectionBackgroundView

## See Also

### Configuring the background

- [defaultBackgroundConfiguration()](uikit/uitableviewcell/defaultbackgroundconfiguration().md)
- [automaticallyUpdatesBackgroundConfiguration](uikit/uitableviewcell/automaticallyupdatesbackgroundconfiguration.md)
- [backgroundView](uikit/uitableviewcell/backgroundview.md)
- [selectedBackgroundView](uikit/uitableviewcell/selectedbackgroundview.md)
- [multipleSelectionBackgroundView](uikit/uitableviewcell/multipleselectionbackgroundview.md)
