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

# sidebarHeader()

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

## Declaration

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

## Return Value

Return Value The default configuration for a header in a sidebar list.

## Discussion

Discussion Create this configuration to update the content and styling of a header in a sidebar collection view list. For an appearance consistent with system defaults, display your header in a sidebar collection view list that you configure with the UICollectionLayoutListConfiguration.Appearance.sidebar enumeration case. 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 header and footer configurations

- [plainHeader()](uikit/uilistcontentconfiguration-swift.struct/plainheader().md)
- [plainFooter()](uikit/uilistcontentconfiguration-swift.struct/plainfooter().md)
- [groupedHeader()](uikit/uilistcontentconfiguration-swift.struct/groupedheader().md)
- [groupedFooter()](uikit/uilistcontentconfiguration-swift.struct/groupedfooter().md)
- [prominentInsetGroupedHeader()](uikit/uilistcontentconfiguration-swift.struct/prominentinsetgroupedheader().md)
- [extraProminentInsetGroupedHeader()](uikit/uilistcontentconfiguration-swift.struct/extraprominentinsetgroupedheader().md)
