---
title: dashboardAttributedInstructionVariants
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpmaneuver/dashboardattributedinstructionvariants
---

# dashboardAttributedInstructionVariants

An array of attributed instruction variants for the CarPlay dashboard.

## Declaration

```swift
var dashboardAttributedInstructionVariants: [NSAttributedString] { get set }
```

## Discussion

Discussion Localize each variant for display to the user, and make sure the array has at least one variant. The system displays the first variant that fits into the available screen space, so arrange the variants in order from most- to least-preferred. note: If you provide both dashboardInstructionVariants and dashboardAttributedInstructionVariants, the system displays instructions from the attributed instruction variants array. The attributed strings in the array can have only a single attribute—an NSTextAttachment. CarPlay removes all other attributes. Using a text attachment attribute, you can add an image to a maneuver instruction as the example below shows. The maximum text attachment image size is 64 x 16 points. Listing 1.

## See Also

### Providing attributed instructions

- [attributedInstructionVariants](carplay/cpmaneuver/attributedinstructionvariants.md)
- [notificationAttributedInstructionVariants](carplay/cpmaneuver/notificationattributedinstructionvariants.md)
