Skip to content

Support macOs custom views inside of a menu item #298

@damageboy

Description

@damageboy

While not the most common scenario, I'm interested in replicating custom controls inside of a tray menu like this:

Image

If I understand correctly, this can (?) be achieved by overriding the view of the menu item, for example in swift like so:

let menuItem = NSMenuItem()
menuItem.view = NSSlider(value: 0.5, minValue: 0.0, maxValue: 1.0, target: nil, action: nil)
menu.addItem(menuItem)

Is this achievable with muda?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions