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

# sidebarHeader()

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

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

## Return Value

The default configuration for a header in a sidebar list.

## 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`](/documentation/UIKit/UICollectionLayoutListConfiguration-swift.struct/Appearance-swift.enum/sidebar) enumeration case.

Configure the background of your cell using one of the [`UIBackgroundConfiguration`](/documentation/UIKit/UIBackgroundConfiguration-swift.struct) options below. Match the background of your cell to the corresponding table view or collection view styles as follows:

|Background configuration option                                                                         |Matching table view or collection view styles                                                                               |
|--------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
|``doc://com.apple.uikit/documentation/UIKit/UIBackgroundConfiguration-swift.struct/listSidebarHeader()``|``doc://com.apple.uikit/documentation/UIKit/UICollectionLayoutListConfiguration-swift.struct/Appearance-swift.enum/sidebar``|

---

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)