You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
statusBarItem?.button?.action = #selector(AppDelegate.togglePopover(_:))
// When starting the app, show the popover. If don't do like this, open the app and shortcuts will not work until click the icon on the menu bar.
DispatchQueue.main.asyncAfter(deadline:.now()+1.0){iflet button =self.statusBarItem?.button {self.popover.show(
relativeTo: button.bounds,
of: button, preferredEdge:NSRectEdge.minY)}}
The problem is that if the user hide the menu bar (System Preferences -> Dock & Menu Bar -> Dock & Menu Bar -> Automatically hide and show the menu bar -> checked), the popover will appear on the top left corner of the screen, instead of appearing below the menu bar icon.
The problem is that if the user hide the menu bar (
System Preferences -> Dock & Menu Bar -> Dock & Menu Bar -> Automatically hide and show the menu bar -> checked
), the popover will appear on the top left corner of the screen, instead of appearing below the menu bar icon.Also check zaferarican/menubarpopoverswiftui2#3 (comment)
The text was updated successfully, but these errors were encountered: