An action displayed on an alert as a button.
- iOS 12.0+
Use an alert action to display a button on an alert. The combination of the alert and action styles determine the appearance of the action button. To perform an action after the user taps the button, provide a block to the action’s