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

# listGroupedHeaderFooter()

Creates the default configuration you use to style a grouped list header or footer.

## Declaration

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

## Return Value

Return Value The default configuration for a grouped list header or footer.

## Discussion

Discussion Create this configuration to update the styling for the background of a header or footer in a table view or collection view list. When you apply this configuration, the background of the header or footer matches the system default styling for a header or footer in a grouped list. For an appearance consistent with system defaults, use this background configuration for a header or footer in these contexts: A table view that you configure with the UITableView.Style.grouped or UITableView.Style.insetGrouped enumeration cases. A a collection view list that you configure with the UICollectionLayoutListConfiguration.Appearance.grouped or UICollectionLayoutListConfiguration.Appearance.insetGrouped enumeration cases.

## See Also

### Creating header and footer background configurations

- [listPlainHeaderFooter()](uikit/uibackgroundconfiguration-swift.struct/listplainheaderfooter().md)
- [listSidebarHeader()](uikit/uibackgroundconfiguration-swift.struct/listsidebarheader().md)
