Contents

alertAction

The title of the action button or slider.

Declaration

var alertAction: String? { get set }

Discussion

Assign a string or, preferably, a localized-string key (using NSLocalizedString) as the value. The alert action is the title of the right button of the alert or the value of the unlock slider, where the value replaces “unlock” in “slide to unlock”. If you specify nil, and alertBody is non-nil, “View” (localized to the preferred language) is used as the default value.

See Also

Composing the alert