---
title: "pushTemplate(_:animated:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpinterfacecontroller/pushtemplate(_:animated:)"
---

# pushTemplate(_:animated:)

Pushes a template onto the navigation stack and updates the CarPlay display.

## Declaration

```swift
func pushTemplate(_ templateToPush: CPTemplate, animated: Bool)
```

## Parameters

- `templateToPush`: The template to push onto the navigation stack.
- `animated`: Set to doc://com.apple.documentation/documentation/Swift/true to animate the presentation of the template.

## See Also

### Deprecated Methods

- [setRootTemplate(_:animated:)](carplay/cpinterfacecontroller/setroottemplate(_:animated:).md)
- [popTemplate(animated:)](carplay/cpinterfacecontroller/poptemplate(animated:).md)
- [popToRootTemplate(animated:)](carplay/cpinterfacecontroller/poptoroottemplate(animated:).md)
- [pop(to:animated:)](carplay/cpinterfacecontroller/pop(to:animated:).md)
- [presentTemplate(_:animated:)](carplay/cpinterfacecontroller/presenttemplate(_:animated:).md)
- [dismissTemplate(animated:)](carplay/cpinterfacecontroller/dismisstemplate(animated:).md)
