Contents

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