---
title: "hidePanel(completion:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplate/hidepanel(completion:)"
---

# hidePanel(completion:)

Hides the overlay.

## Declaration

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

```swift
func hidePanel() async throws -> Bool
```

## Parameters

- `completion`: An optional block called when the overlay has been hidden.
