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

# listSidebarCell()

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

## Declaration

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

## Return Value

Return Value The default configuration for a cell in a sidebar 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 cell in a sidebar collection view list, including styling for highlighted and selected states. For an appearance consistent with system defaults, use this background configuration for a cell in a collection view list that you configure with the UICollectionLayoutListConfiguration.Appearance.sidebar or UICollectionLayoutListConfiguration.Appearance.sidebarPlain enumeration case.

## See Also

### Creating cell background configurations

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