isEnabled
A Boolean value indicating whether the action is currently enabled.
Declaration
var isEnabled: Bool { get set }Discussion
The default value of this property is true. Changing the value to false causes the action to appear dimmed in the resulting alert. When an action is disabled, taps on the corresponding button have no effect.