---
title: "init(title:detail:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpinformationitem/init(title:detail:)"
---

# init(title:detail:)

Creates an information item with a title and detail text.

## Declaration

```swift
init(title: String?, detail: String?)
```

## Parameters

- `title`: The text that the template displays as the item’s title.
- `detail`: The text that the template displays below or beside the title, depending on the template’s layout. See doc://com.apple.carplay/documentation/CarPlay/CPInformationTemplateLayout for more information.
