---
title: "init(title:items:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpmappanelsection/init(title:items:)"
---

# init(title:items:)

Initializes a section with items conforming to @c CPMapPanelItem. Only items that adopt @c CPMapPanelItem are supported when displaying panel sections on a @c CPMapTemplate.

## Declaration

```swift
init(title: String?, items: [CPMapPanelItem])
```

## Parameters

- `title`: An optional title for the section.
- `items`: An array of @c CPMapPanelItem conforming objects to display in the section.
