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:34
var appName: String
The sending application's name.
Sources/LavaUI/Notifications.swift:22
var body: String
Not documented.
Sources/LavaUI/Notifications.swift:25
var fallback: String
First letter of the application's name, for when there is no icon.
Sources/LavaUI/Notifications.swift:29
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:39
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?
The notification's icon, or nil to show fallback instead.
Sources/LavaUI/Notifications.swift:27
var isSticky: Bool
True when this one waits for the user rather than a clock.
Sources/LavaUI/Notifications.swift:36
var summary: String
The title line.
Sources/LavaUI/Notifications.swift:24
var urgency: Urgency
How urgent the sender says it is.
Sources/LavaUI/Notifications.swift:31