---
title: listGroupedCell()
framework: uikit
role: symbol
role_heading: Type Method
path: uikit/uibackgroundconfiguration-swift.struct/listgroupedcell()
---

# listGroupedCell()

Creates the default configuration you use to style a cell in a grouped list.

## Declaration

```swift
static func listGroupedCell() -> UIBackgroundConfiguration
```

## Return Value

Return Value The default configuration for a cell in a grouped list.

## Discussion

Discussion Create this configuration to update the styling for the background of a cell in a list. When you apply this configuration to a cell, the background of the cell matches the system default styling for a grouped cell, including styling for highlighted and selected states. For an appearance consistent with system defaults, use this background configuration for a cell in these contexts: A table view that you configure with the UITableView.Style.grouped or UITableView.Style.insetGrouped enumeration case. A collection view list that you configure with the UICollectionLayoutListConfiguration.Appearance.grouped or UICollectionLayoutListConfiguration.Appearance.insetGrouped enumeration case.

## See Also

### Creating cell background configurations

- [listPlainCell()](uikit/uibackgroundconfiguration-swift.struct/listplaincell().md)
- [listSidebarCell()](uikit/uibackgroundconfiguration-swift.struct/listsidebarcell().md)
- [listAccompaniedSidebarCell()](uikit/uibackgroundconfiguration-swift.struct/listaccompaniedsidebarcell().md)
