ShowAlert

public struct ShowAlert : Shortcut

Displays an alert with a title, a message, and two buttons. If the user selects the OK button, the shortcut continues,. The cancel button stops the shortcut.

  • The contents of the shortcut.

    Declaration

    Swift

    public var body: some Shortcut { get }
  • Initializes the shortcut.

    Declaration

    Swift

    public init(title: Text = "", message: Text, showsCancelButton: Bool = true)

    Parameters

    title

    The title of the alert.

    message

    The subtitle or message ofthe alert.

    showsCancelButton

    Whether the cancel button is displayed.