---
title: cell()
framework: uikit
role: symbol
role_heading: Type Method
path: uikit/uilistcontentconfiguration-swift.struct/cell()
---

# cell()

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

## Declaration

```swift
static func cell() -> UIListContentConfiguration
```

## Return Value

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

## Discussion

Discussion Create this configuration to update the content and styling of a cell in a list. When you apply this configuration to a cell, the cell displays one label, which resizes automatically based on the length of the text you provide and the device’s Dynamic Type and accessibility settings. For an appearance consistent with system defaults, display your cell in a table view or collection view list that you configure with one of the following enumeration cases: UITableView.Style.plain UITableView.Style.grouped UITableView.Style.insetGrouped UICollectionLayoutListConfiguration.Appearance.plain UICollectionLayoutListConfiguration.Appearance.grouped UICollectionLayoutListConfiguration.Appearance.insetGrouped Configure the background of your cell using one of the UIBackgroundConfiguration options below. Match the background of your cell to the corresponding table view or collection view styles as follows:  |   |   |

## See Also

### Creating default cell configurations

- [subtitleCell()](uikit/uilistcontentconfiguration-swift.struct/subtitlecell().md)
- [valueCell()](uikit/uilistcontentconfiguration-swift.struct/valuecell().md)
- [sidebarCell()](uikit/uilistcontentconfiguration-swift.struct/sidebarcell().md)
- [sidebarSubtitleCell()](uikit/uilistcontentconfiguration-swift.struct/sidebarsubtitlecell().md)
- [accompaniedSidebarCell()](uikit/uilistcontentconfiguration-swift.struct/accompaniedsidebarcell().md)
- [accompaniedSidebarSubtitleCell()](uikit/uilistcontentconfiguration-swift.struct/accompaniedsidebarsubtitlecell().md)
