<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewHeaderFooterView/contentConfiguration-6b4eg",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So023UITableViewHeaderFooterB0C5UIKitE20contentConfigurationAC09UIContentG0_pSgvp"
  },
  "title" : "contentConfiguration"
}
-->

# contentConfiguration

The current content configuration of the view.

```
@MainActor @preconcurrency var contentConfiguration: (any UIContentConfiguration)? { get set }
```

## Discussion

Using a content configuration, you can set the view’s content and styling for a variety of different view states. You can get the default configuration using [`defaultContentConfiguration()`](/documentation/UIKit/UITableViewHeaderFooterView/defaultContentConfiguration()), assign your content to the configuration, customize any other properties, and assign it to the view as the current [`contentConfiguration`](/documentation/UIKit/UITableViewHeaderFooterView/contentConfiguration-6b4eg).

Setting a content configuration replaces the existing [`contentView`](/documentation/UIKit/UITableViewHeaderFooterView/contentView) of the view with a new content view instance from the configuration, or directly applies the configuration to the existing content view if the configuration is compatible with the existing content view type.

The default value is `nil`. After you set a content configuration to this property, setting this property back to `nil` replaces the current content view with a new, empty content view.

---

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)