LavaUI docs GitHub

struct Action

Swift

struct Action

One of a notification's buttons.

Sources/LavaUI/Notifications.swift:42

Properties

var id: String { get }

The action's identity, which is its key.

Sources/LavaUI/Notifications.swift:48

var key: String

What is sent back to the application when the button is pressed.

Sources/LavaUI/Notifications.swift:44

var label: String

The button's text.

Sources/LavaUI/Notifications.swift:46