UIAlertAction
An action that can be taken when the user taps a button in an alert.
Declaration
@MainActor class UIAlertActionMentioned in
Overview
You use this class to configure information about a single action, including the title to display in the button, any styling information, and a handler to execute when the user taps the button. After creating an alert action object, add it to a UIAlertController object before displaying the corresponding alert to the user.