---
title: secondaryAction
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpnavigationalert/secondaryaction
---

# secondaryAction

An optional secondary action, and button, for the navigation alert.

## Declaration

```swift
var secondaryAction: CPAlertAction? { get }
```

## Discussion

Discussion The alert displays the button for a secondary action on the trailing edge of the alert.

## See Also

### Getting the Actions

- [primaryAction](carplay/cpnavigationalert/primaryaction.md)
