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

# CPMapPanelSection

A single section of a map panel that you fill with a title and one or more items.

```
class CPMapPanelSection
```

## Overview

The `CPMapPanelSection` class organizes a single section of content in a [`CPMapPanel`](/documentation/CarPlay/CPMapPanel) interface. In a navigation app,
you use map panels to display relevant information such as route options or the location of charging stations on top of your
custom map. Section objects manage one or more related items you want to display. For example, you might use one section
to display upcoming charging stations and a different section to display route choices.

Create a `CPMapPanelSection` object and configure it with the section title and a [`CPMapPanelItem`](/documentation/CarPlay/CPMapPanelItem) object for each
item you want to display. Add the section to your [`CPMapPanel`](/documentation/CarPlay/CPMapPanel) object before showing the panel from your map template.
If you modify a section after the panel is visible, the system updates the section’s contents in your CarPlay interface.

## Topics

### Initializers

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

[`init(title: String?, items: [CPMapPanelItem])`](/documentation/CarPlay/CPMapPanelSection/init(title:items:))

Initializes the section with the specified title and items.

### Instance Properties

[`var items: [CPMapPanelItem]`](/documentation/CarPlay/CPMapPanelSection/items)

The items to display in the section.

[`var title: String?`](/documentation/CarPlay/CPMapPanelSection/title)

The localized string to display for the section title.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

### Inherits From

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

---

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)