DropletLiquidMenuRequest

Request passed to an environment-injected DropletHostLiquidMenuPresenter.

@MainActor struct DropletLiquidMenuRequest

Initializers

init(anchorView:title:items:attachment:maxHeight:onClose:)

@MainActor init(anchorView: NSView, title: String = "", items: [DropletLiquidMenuItem], attachment: DropletLiquidMenuAttachment = .automatic, maxHeight: CGFloat? = nil, onClose: @escaping @MainActor () -> Void = {})

Properties

anchorView

@MainActor let anchorView: NSView

attachment

@MainActor let attachment: DropletLiquidMenuAttachment

items

@MainActor let items: [DropletLiquidMenuItem]

maxHeight

@MainActor let maxHeight: CGFloat?

onClose

@MainActor let onClose: @MainActor () -> Void

title

@MainActor let title: String