isDestructive
A Boolean value indicating whether the action is destructive.
Declaration
var isDestructive: Bool { get }Discussion
Use this property to signal to the user whether the action causes destructive behavior to the user’s data or the app. When the value of this property is true, the system displays the corresponding button differently to indicate that the action is destructive.
The default value of this property is false.