---
title: "init(_:isPresented:actions:message:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/alertscene/init(_:ispresented:actions:message:)"
---

# init(_:isPresented:actions:message:)

Creates an alert scene with a title, a set of actions, and a message.

## Declaration

```swift
nonisolated init(_ title: Text, isPresented: Binding<Bool>, @ContentBuilder actions: () -> Actions, @ContentBuilder message: () -> Message)
```

## Parameters

- `title`: The title of the alert.
- `isPresented`: A binding to a Boolean value that determines whether to present the alert. When someone presses or taps one of the alert’s actions, the system sets this value to false and dismisses.
- `actions`: A doc://com.apple.SwiftUI/documentation/SwiftUI/ContentBuilder returning the actions for the dialog.
- `message`: A doc://com.apple.SwiftUI/documentation/SwiftUI/ContentBuilder returning the message for the dialog.
