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

# init(title:sections:)

Creates a list template with an array of list sections and optional title.

```
init(title: String?, sections: [CPListSection])
```

## Parameters

`title`

A title that appears in the navigation bar while the template is visible.

`sections`

An array of list sections, each with zero or more list items.

## Return Value

A newly initialized list template.

---

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)