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

# titleVariants

The array of title variants for the button.

```
var titleVariants: [String] { get }
```

## Discussion

An array of title variants for this button in an arrangement from most- to least-preferred. The system selects a title from this array that best fits the available space. You provide the title variants to [`init(titleVariants:subtitleVariants:image:handler:)`](/documentation/CarPlay/CPDashboardButton/init(titleVariants:subtitleVariants:image:handler:)) as localized, displayable content.

---

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)