AlertUI

public protocol AlertUI : ConnectUIElement

User interface to present an alert to the user.

Objects conforming to this protocol are vended by the ConnectUI instance.

  • Creates a new alert with the specified elements.

    Declaration

    Swift

    static func create(icon: AlertIcon, title: String?, message: String?, actions: [AlertAction]) -> Self

    Parameters

    icon

    The icon to display in the alert

    title

    An optional title to display in the alert

    message

    An optional message to display in the alert

    actions

    An array up to two actions to display in the alert. The position, layout, and display of the actions are specified by the action style.