<!--
{
  "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/dismissTemplate(animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPInterfaceController(im)dismissTemplateAnimated:"
  },
  "title" : "dismissTemplate(animated:)"
}
-->

# dismissTemplate(animated:)

Dismisses the template that the interface controller is displaying modally.

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

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

---

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)