---
title: "init(title:sections:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cplisttemplate/init(title:sections:)"
---

# init(title:sections:)

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

## Declaration

```swift
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

Return Value A newly initialized list template.

## See Also

### Creating a List Template

- [init(title:sections:assistantCellConfiguration:)](carplay/cplisttemplate/init(title:sections:assistantcellconfiguration:).md)
