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

# dismissTemplate(animated:)

Dismisses the template that the interface controller is displaying modally.

## Declaration

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

## Parameters

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

## Discussion

Discussion Calling this method when there’s no modal template displayed has no effect.

## 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)
- [popToRootTemplate(animated:)](carplay/cpinterfacecontroller/poptoroottemplate(animated:).md)
- [pop(to:animated:)](carplay/cpinterfacecontroller/pop(to:animated:).md)
- [presentTemplate(_:animated:)](carplay/cpinterfacecontroller/presenttemplate(_:animated:).md)
