Initializer

init(title:message:dismissButton:)

Creates an alert with one button.

Declaration 宣言

init(title: Text, message: Text? = nil, dismissButton: Alert.Button? = nil)

Parameters パラメータ

title

The title of the alert.

message

The message to display in the body of the alert.

dismissButton

The button that dismisses the alert.

See Also 参照

Creating an Alert 警報を作成する