Skip to content

How to integrate with a pure SwiftUI app? #4

@hk05

Description

@hk05

MacMenuBar looks great, so I wanted to try it on one of my apps. Since it is an existing app, I cannot use the templates. I have not been able to run MacMenuBar in in a "pure swiftUI" environment with an entry point like:

@main
struct MyApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate

var body: some Scene {
    WindowGroup {
        ContentView()
    }
    .commands {
        SidebarCommands() 
    }
}

}

Following instructions in this situation did not yield success.

Would it be possible to extend the (otherwise excellent) documentation with a setup instruction for configs like the above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions