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.