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

# pushTemplate(_:animated:)

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

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

---

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)