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

# bodyVariants

An optional array of strings, ordered from most to least preferred.

```
var bodyVariants: [NSAttributedString] { get set }
```

## Discussion

The variant strings should be provided as localized, displayable content.
The system will select the first variant that fits the available space.

---

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)