---
title: titleVariants
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpalerttemplate/titlevariants
---

# titleVariants

The array of title variants.

## Declaration

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

## Discussion

Discussion When the system displays the alert, it selects the title that best fits the available screen space, so arrange the titles from most to least preferred when creating an alert template. Also, localize each title for display to the user, and be sure to include at least one title in the array.

## See Also

### Getting the Alert Information

- [actions](carplay/cpalerttemplate/actions.md)
