DroppyKitLiquidMenuButton
Morphing Liquid Menu trigger button for droplets.
@MainActor struct DroppyKitLiquidMenuButton<Label> where Label : View
Inside Droppy, delegates directly to liquidMenuButtonProvider (backed by the host's DroppyLiquidMenuButton with 120 Hz GPU morphing and lazy item evaluation). If a custom droppyHostLiquidMenuPresenter is injected instead, invokes that presenter with a live NSView anchor. Outside Droppy (standalone DroppyKitHarness or previews), falls back cleanly to native SwiftUI Menu.
Initializers
init(title:attachment:maxHeight:items:onClose:label:)
@MainActor init(title: String = "", attachment: DropletLiquidMenuAttachment = .automatic, maxHeight: CGFloat? = nil, items: @escaping @MainActor () -> [DropletLiquidMenuItem], onClose: @escaping @MainActor () -> Void = {}, @ViewBuilder label: @escaping () -> Label)
Creates a Liquid Menu button whose items are evaluated lazily on tap.
init(title:attachment:maxHeight:items:onClose:label:)
@MainActor init(title: String = "", attachment: DropletLiquidMenuAttachment = .automatic, maxHeight: CGFloat? = nil, items: [DropletLiquidMenuItem], onClose: @escaping @MainActor () -> Void = {}, @ViewBuilder label: @escaping () -> Label)
Creates a Liquid Menu button from a prebuilt item array.
init(title:systemImage:diameter:tone:attachment:maxHeight:items:onClose:)
@MainActor init(title: String = "", systemImage: String = "ellipsis", diameter: CGFloat? = nil, tone: DroppyWashTone = .neutral, attachment: DropletLiquidMenuAttachment = .automatic, maxHeight: CGFloat? = nil, items: @escaping @MainActor () -> [DropletLiquidMenuItem], onClose: @escaping @MainActor () -> Void = {})
Creates a Liquid Menu button with an optical Liquid Glass circular icon trigger matching the mount's control size.
init(title:systemImage:diameter:tone:attachment:maxHeight:items:onClose:)
@MainActor init(title: String = "", systemImage: String = "ellipsis", diameter: CGFloat? = nil, tone: DroppyWashTone = .neutral, attachment: DropletLiquidMenuAttachment = .automatic, maxHeight: CGFloat? = nil, items: [DropletLiquidMenuItem], onClose: @escaping @MainActor () -> Void = {})
Creates a Liquid Menu button from a prebuilt item array with an optical Liquid Glass circular icon trigger matching the mount's control size.
Properties
body
@MainActor var body: some View { get }