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

# init(title:items:)

Initializes the section with the specified title and items.

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

## Parameters

`title`

The localized title of the section. The system displays this string at the top of the section’s content. The section
object stores a copy of the provided string. Specify `nil` if you don’t want to display a title for the section.

`items`

The array of items to display in the section. Specify at least one item in this array. The section object stores a
copy of the provided array.

## Return Value

An initialized section object.

---

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)