struct MenuChromeRoot
Swift
struct MenuChromeRoot<Content> where Content : View
Wraps app content with an in-window menu strip when model is non-empty.
Sources/LavaUI/MenuBarView.swift:171
Constructors
init(model: MenuModel, onActivate: @escaping (MenuID) -> Void, style: MenuBarStyle = .standard(), content: Content)
Wraps content under a menu strip for model.
Sources/LavaUI/MenuBarView.swift:184
Properties
var body: some View { get }
Not documented.
Sources/LavaUI/MenuBarView.swift:196
var content: Content
The app's own content, laid out under the strip.
Sources/LavaUI/MenuBarView.swift:179
var model: MenuModel
The menus to show. With none, the strip is left out and only content shows.
Sources/LavaUI/MenuBarView.swift:173
var onActivate: (MenuID) -> Void
Called with the item's id when a menu item is chosen.
Sources/LavaUI/MenuBarView.swift:175
var style: MenuBarStyle
How the strip and its dropdowns look.
Sources/LavaUI/MenuBarView.swift:177