<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapPanel/Delegate-swift.protocol/panelDidHide(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPMapPanelDelegate(im)panelDidHide:"
  },
  "title" : "panelDidHide(_:)"
}
-->

# panelDidHide(_:)

Tells the delegate that the system hid the specified map panel.

```
optional func panelDidHide(_ panel: CPMapPanel)
```

## Parameters

`panel`

The panel that disappeared from your map interface.

## Discussion

Shortly after the system removes a map panel from your CarPlay interface, the system calls this method to give you a chance
to respond. Use this method to perform any cleanup tasks associated with the panel’s disappearance. The system calls this method
on your app’s main thread.

---

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)