LavaUI docs

struct Toast

Swift

struct Toast

One live notification, with its icon already a texture. Not Equatable: UIImage is a texture handle, and comparing two toasts is never how a panel decides to redraw — revision is.

Sources/LavaUI/Notifications.swift:17

Properties

var actions: [Action]

Buttons, in the order the sender gave them. The conventional default action is not here — it is what clicking the body does.

Sources/LavaUI/Notifications.swift:30

var appName: String

Not documented.

Sources/LavaUI/Notifications.swift:21

var body: String

Not documented.

Sources/LavaUI/Notifications.swift:23

var fallback: String

First letter of the application's name, for when there is no icon.

Sources/LavaUI/Notifications.swift:26

var hasDefaultAction: Bool

Whether the sender offered a default action — what a click on the body invokes. Without one, that click just dismisses.

Sources/LavaUI/Notifications.swift:35

var id: UInt32

The protocol's id — what ActionInvoked and NotificationClosed speak in, and what a replacement reuses.

Sources/LavaUI/Notifications.swift:20

var image: UIImage?

Not documented.

Sources/LavaUI/Notifications.swift:24

var isSticky: Bool

True when this one waits for the user rather than a clock.

Sources/LavaUI/Notifications.swift:32

var summary: String

Not documented.

Sources/LavaUI/Notifications.swift:22

var urgency: Urgency

Not documented.

Sources/LavaUI/Notifications.swift:27

Types