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

# hideOverlayTemplate(animated:completion:)

Dismiss the current overlay template, optionally animating the dismissal.

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

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

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

---

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)