---
title: "hideOverlayTemplate(animated:completion:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpinterfacecontroller/hideoverlaytemplate(animated:completion:)"
---

# hideOverlayTemplate(animated:completion:)

Dismiss the current overlay template, optionally animating the dismissal.

## Declaration

```swift
func hideOverlayTemplate(animated: Bool, completion: ((Bool, (any Error)?) -> Void)? = nil)
```

```swift
func hideOverlayTemplate(animated: Bool) async throws -> Bool
```

## Discussion

Discussion note: If there is no current overlay template, this method will have no effect. The completion block will be called after the template has been dismissed. If the template was dismissed successfully, the boolean parameter will be YES. Otherwise, the boolean parameter will be NO and an @c NSError will be provided describing the failure.
