<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPPanel/showsCloseButton",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPPanel(py)showsCloseButton"
  },
  "title" : "showsCloseButton"
}
-->

# showsCloseButton

A Boolean value that indicates whether the panel displays a close button.

```
var showsCloseButton: Bool { get set }
```

## Discussion

When the value of this property is `true`, the panel displays a close button that the driver can use to dismiss the panel.
When the value of this property is `false`, you need to dismiss the panel programmatically from your app.
The default value of this property is `true`.

---

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)