<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPListSection/headerImage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPListSection(py)headerImage"
  },
  "title" : "headerImage"
}
-->

# headerImage

An image that the section header displays.

```
@NSCopying var headerImage: UIImage? { get set }
```

## Discussion

The maximum size of the section header image is [`CPMaximumListSectionImageSize`](/documentation/CarPlay/CPMaximumListSectionImageSize).

Provide a <doc://com.apple.documentation/documentation/UIKit/UIImage> that is display-ready. To provide an image that includes light and dark styles, use an asset from your asset catalog that includes both styles, or use a <doc://com.apple.documentation/documentation/UIKit/UIImageAsset> to combine two <doc://com.apple.documentation/documentation/UIKit/UIImage> instances into a single image with both styles.

To size your header image properly, consider the display scale of the car screen. Use <doc://com.apple.documentation/documentation/UIKit/UIImageAsset> to combine multiple images with different trait collections into a single image. For more information about trait collections for CarPlay, see [`carTraitCollection`](/documentation/CarPlay/CPInterfaceController/carTraitCollection).

---

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)