---
title: "popToRootTemplate(animated:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpinterfacecontroller/poptoroottemplate(animated:)"
---

# popToRootTemplate(animated:)

Pops all templates on the stack—except the root template—and updates the CarPlay display.

## Declaration

```swift
func popToRootTemplate(animated: Bool)
```

## Parameters

- `animated`: A Boolean value that indicates whether the system animates the display of transitioning templates. Set to doc://com.apple.documentation/documentation/Swift/true to animate the transition.

## See Also

### Deprecated Methods

- [setRootTemplate(_:animated:)](carplay/cpinterfacecontroller/setroottemplate(_:animated:).md)
- [pushTemplate(_:animated:)](carplay/cpinterfacecontroller/pushtemplate(_:animated:).md)
- [popTemplate(animated:)](carplay/cpinterfacecontroller/poptemplate(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)
