MimiAlertAction
public class MimiAlertAction
Action for an alert.
-
Style for the action.
default
: Default action.- destructive: Action that performs something destructive.
- cancel: Cancel action.
Declaration
Swift
public enum Style
-
Action title.
Declaration
Swift
public let title: String
-
Action closure.
Declaration
Swift
public let action: Handler?
-
Action style
Declaration
Swift
public let style: Style
-
Accessibility identifier for the action view
Declaration
Swift
public var accessibilityId: String?
-
Create a new action.
Declaration
Swift
public init(title: String, style: Style = .default, action: Handler?)
Parameters
title
Title of the action.
action
Closure to execute for the action.