static func `default`(Text, action: (() -> Void)?) -> Alert.Button
Creates an alert button with the default style.
static func cancel((() -> Void)?) -> Alert.Button
Creates an alert button that indicates cancellation, with a system-provided label.
static func cancel(Text, action: (() -> Void)?) -> Alert.Button
Creates an alert button that indicates cancellation, with a custom label.
static func destructive(Text, action: (() -> Void)?) -> Alert.Button
Creates an alert button with a style that indicates a destructive action.