---
title: showsCloseButton
framework: CarPlay
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+]
path: carplay/cppanel/showsclosebutton
---

# showsCloseButton

A Boolean value indicating whether the close button is allowed to appear.

## Declaration

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

## Discussion

Discussion Set the value of this property to @c NO to hide the close button. Defaults to YES.
