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

# CPPanel

A type that provides the common behaviors for panels you display on top of your app’s content.

```
class CPPanel
```

## Overview

The `CPPanel` type defines the default behaviors for panels you display in your app. You don’t create or present
this type directly. Instead, instantiate one of the defined subclasses and present that type from your app’s interface.
For example, create a [`CPMapPanel`](/documentation/CarPlay/CPMapPanel) and configure it with navigation-related data, and present it from a [`CPMapTemplate`](/documentation/CarPlay/CPMapTemplate)
to overlay that information on top of your custom map.

## Topics

### Initializers

[`init?(coder: NSCoder)`](/documentation/CarPlay/CPPanel/init(coder:))

### Instance Properties

[`var showsCloseButton: Bool`](/documentation/CarPlay/CPPanel/showsCloseButton)

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

### Type Properties

[`class var maximumPanelItemsCount: Int`](/documentation/CarPlay/CPPanel/maximumPanelItemsCount)

The maximum number of items the panel is able to display.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Inherited By

[`CPMapPanel`](/documentation/CarPlay/CPMapPanel)

---

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)