---
title: "init(title:message:buttons:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/actionsheet/init(title:message:buttons:)"
---

# init(title:message:buttons:)

Creates an action sheet with the provided buttons.

## Declaration

```swift
init(title: Text, message: Text? = nil, buttons: [ActionSheet.Button] = [.cancel()])
```

## Parameters

- `title`: The title of the action sheet.
- `message`: The message to display in the body of the action sheet.
- `buttons`: The buttons to show in the action sheet.
