---
title: "updateTitleVariants(_:subtitleVariants:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpnavigationalert/updatetitlevariants(_:subtitlevariants:)"
---

# updateTitleVariants(_:subtitleVariants:)

Updates title and subtitle variants.

## Declaration

```swift
func updateTitleVariants(_ newTitleVariants: [String], subtitleVariants newSubtitleVariants: [String])
```

## Parameters

- `newTitleVariants`: An array of localized, displayable titles. The system selects the title that fits in the available display space.
- `newSubtitleVariants`: An array of localized, displayable subtitles. The system selects the title that fits in the available display space.

## Discussion

Discussion You can update the navigation alert with new title and subtitle variants before presenting the alert or after displaying it. Updating a dismissed alert has no effect.

## See Also

### Getting Titles

- [titleVariants](carplay/cpnavigationalert/titlevariants.md)
- [subtitleVariants](carplay/cpnavigationalert/subtitlevariants.md)
