<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: -",
    "tvOS: 14.0.0 - 18.0.0",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBackgroundConfiguration-swift.struct/listGroupedCell()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit25UIBackgroundConfigurationV15listGroupedCellACyFZ"
  },
  "title" : "listGroupedCell()"
}
-->

# listGroupedCell()

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

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

## Return Value

The default configuration for a cell in a grouped list.

## 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`](/documentation/UIKit/UITableView/Style-swift.enum/grouped) or [`UITableView.Style.insetGrouped`](/documentation/UIKit/UITableView/Style-swift.enum/insetGrouped) enumeration case.
- A collection view list that you configure with the [`UICollectionLayoutListConfiguration.Appearance.grouped`](/documentation/UIKit/UICollectionLayoutListConfiguration-swift.struct/Appearance-swift.enum/grouped) or [`UICollectionLayoutListConfiguration.Appearance.insetGrouped`](/documentation/UIKit/UICollectionLayoutListConfiguration-swift.struct/Appearance-swift.enum/insetGrouped) enumeration case.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)