Creates an alert button with a style that indicates a destructive
action.
- Parameters:
- label: The text to display on the button.
- action: A closure to execute when the user taps or presses the
button.
- Returns: An alert button that indicates a destructive action.
Creates an alert button that indicates cancellation, with a custom
label.
- Parameters:
- label: The text to display on the button.
- action: A closure to execute when the user taps or presses the
button.
- Returns: An alert button that indicates cancellation.
Creates an alert button that indicates cancellation, with a
system-provided label.
The system automatically chooses locale-appropriate text for the
button's label.
- Parameter action: A closure to execute when the user taps or presses the
button.
- Returns: An alert button that indicates cancellation.
Creates an alert button with the default style.
- Parameters:
- label: The text to display on the button.
- action: A closure to execute when the user taps or presses the
button.
- Returns: An alert button with the default style.