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

# init(title:gridButtons:)

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

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

A newly initialized grid 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)