---
title: "present(navigationAlert:animated:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplate/present(navigationalert:animated:)"
---

# present(navigationAlert:animated:)

Displays a navigation alert on the map template.

## Declaration

```swift
func present(navigationAlert: CPNavigationAlert, animated: Bool)
```

## Parameters

- `navigationAlert`: The navigation alert to display.
- `animated`: To animate the display of the alert, set to doc://com.apple.documentation/documentation/Swift/true; otherwise, set to doc://com.apple.documentation/documentation/Swift/false to immediately display the alert.

## Discussion

Discussion This method has no effect when the map template is already displaying a navigation alert. Dismiss the current alert before presenting a new one.

## See Also

### Displaying a Navigation Alert

- [dismissNavigationAlert(animated:completion:)](carplay/cpmaptemplate/dismissnavigationalert(animated:completion:).md)
- [currentNavigationAlert](carplay/cpmaptemplate/currentnavigationalert.md)
- [CPNavigationAlert](carplay/cpnavigationalert.md)
