---
title: "showPanel(_:completion:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpmaptemplate/showpanel(_:completion:)"
---

# showPanel(_:completion:)

Shows an overlay with the specified panel.

## Declaration

```swift
func showPanel(_ panel: CPMapPanel, completion: ((Bool, (any Error)?) -> Void)? = nil)
```

```swift
func showPanel(_ panel: CPMapPanel) async throws -> Bool
```

## Parameters

- `panel`: The panel to display.
- `completion`: An optional block called when the overlay has been shown.
