<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPNavigationAlert/updateTitleVariants(_:subtitleVariants:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPNavigationAlert(im)updateTitleVariants:subtitleVariants:"
  },
  "title" : "updateTitleVariants(_:subtitleVariants:)"
}
-->

# updateTitleVariants(_:subtitleVariants:)

Updates title and subtitle variants.

```
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

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.

---

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)