AlertAction

public struct AlertAction

Present a simple text message to the user before continuing.

No input is collected but the user has to take action in order to continue usually by tapping Continue.

  • Create an ad hoc AlertAction.

    Declaration

    Swift

    public init(title: String, message: String, actionTitle: String)

    Parameters

    title

    the title of the Alert

    message

    the message to display in the Alert

    actionTitle

    the title to be used in the Continue button.

  • Create an AlertAction from an ID and given attributes.

    Declaration

    Swift

    public init?(id: String, attributes: AnyObject?)

    Parameters

    id

    unique ID for this Alert

    attributes

    attributes of this Alert (title, message, actionTitle)