---
title: "init(title:gridButtons:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpgridtemplate/init(title:gridbuttons:)"
---

# init(title:gridButtons:)

Creates a grid template with a title and a set of buttons.

## Declaration

```swift
init(title: String?, gridButtons: [CPGridButton])
```

## Parameters

- `title`: The title shown in the grid template’s navigation bar.
- `gridButtons`: An array of grid buttons to display on the template.

## Return Value

Return Value A newly initialized grid template.

## See Also

### Creating a Grid Template

- [CPGridButton](carplay/cpgridbutton.md)
