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

# init(title:layout:items:actions:)

Creates an information template that displays the provided items using the chosen layout.

```
init(title: String, layout: CPInformationTemplateLayout, items: [CPInformationItem], actions: [CPTextButton])
```

## Parameters

`title`

The title that the template displays.

`layout`

The layout that the template uses to arrange its items. See [`CPInformationTemplateLayout`](/documentation/CarPlay/CPInformationTemplateLayout) for more information.

`items`

An array of information items that the template displays.

`actions`

An array of text buttons that provides the actions that the user can perform.

## Discussion

The template can display up to 10 information items. If `items` contains more objects, the template uses only the first 10. Likewise, the template displays three actions maximum. If `actions` contains more than that, the template uses only the first three.

---

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)