struct MenuActionTable
Swift
struct MenuActionTable
Closures keyed by MenuID. Not Equatable — compared only by key set in tests.
UI construction and activation are main-thread (same as Button actions).
Sources/LavaMenu/Menu.swift:239
Constructors
init()
Not documented.
Sources/LavaMenu/Menu.swift:242
Properties
var count: Int { get }
Not documented.
Sources/LavaMenu/Menu.swift:246
var ids: Set<MenuID> { get }
Not documented.
Sources/LavaMenu/Menu.swift:248
Methods
@discardableResult func activate(_ id: MenuID) -> Bool
Runs the action for id if present. Returns whether an action ran.
Sources/LavaMenu/Menu.swift:256
func contains(_ id: MenuID) -> Bool
Not documented.
Sources/LavaMenu/Menu.swift:250