Skip to content

isMenuPresented using ObservableObject... #6

Answered by orchetect
dortus47 asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure what would explain the delay. Perhaps it's because you're using a non-English system language. The library does a lot of traversal under the hood of English property names and maybe it's having to use a redundancy to perform the action and taking longer somehow. Or perhaps something is happening between MenuBarExtraView() and PreferencesView().

I just made a new macOS SwiftUI app with the following, and clicking the button in the menubar window makes the window dismiss immediately.

@main struct MBETestApp: App {
    @StateObject var appState: AppState = .init()
    
    var body: some Scene {
        MenuBarExtra("ListeningDogApp") {
            ContentView()
                .env…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by orchetect
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #4 on July 19, 2023 19:44.