---
title: "init(title:message:actions:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpactionsheettemplate/init(title:message:actions:)"
---

# init(title:message:actions:)

Creates an action sheet template.

## Declaration

```swift
init(title: String?, message: String?, actions: [CPAlertAction])
```

## Parameters

- `title`: The title of the action sheet.
- `message`: A descriptive message providing details about the reason for displaying the action sheet.
- `actions`: A list of actions available on the action sheet. The array must contain at least one action.

## Return Value

Return Value A newly initialized action sheet template.
