UIAlertControllerSeverity
Constants for specifying the severity of an alert in apps built with Mac Catalyst.
Declaration
enum UIAlertControllerSeverityOverview
This enumeration defines the severity options used by the severity property of UIAlertController. In apps built with Mac Catalyst, the severity determines the style of the presented alert. A UIAlertControllerSeverity.critical alert appears with a caution icon, and an alert with a UIAlertControllerSeverity.default severity doesn’t. UIKit ignores the alert severity on iOS.
You should only use the UIAlertControllerSeverity.critical severity if an alert truly requires special attention from the user. For more information, see the Human Interface Guidelines on alerts.