DestructiveUserAction
public protocol DestructiveUserAction : UserAction
A type of UserAction
that performs destructive work which may be worth confirming with the user.
Conformance to this protocol should be added in addition to one of the other UserAction
protocols.
-
The title to use in a confirmation alert for this action.
Declaration
Swift
var confirmationTitle: String { get }
-
The message to show below the title in a confirmation alert for this action.
This will generally be of a form like
Are you sure you want to…?
Declaration
Swift
var confirmationMessage: String { get }
-
The text of the button in the confirmation alert that the user will hit to perform the action.
Declaration
Swift
var confirmationButtonTitle: String { get }