AnaghSharma / Ambar-SwiftUI

Ambar is a macOS menu bar app built with SwiftUI.
https://www.anaghsharma.com/blog/macos-menu-bar-app-with-swiftui/
MIT License
270 stars 10 forks source link

Popover is not showing #2

Closed giacomorebonato closed 3 years ago

giacomorebonato commented 4 years ago

Hi, I came on this repo after I read your nice blog post. I followed all the instructions, but the popover is not showing. I checked out this repo then to try it... and I can't see the popover after click on this one too.

I saw this Reddit thread and comment by somebody suggesting to change:

statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.squareLength)

But even with this change the click is not triggering the action for me.

giacomorebonato commented 4 years ago

OK, it breaks because my menubar is set to auto hide. How can the solution be adapted to work in this case too?

AnaghSharma commented 4 years ago

Thanks for pointing this out. Interesting problem. I think it's kinda hard to diagnose, but I'll give it a try.

giacomorebonato commented 4 years ago

I have found a solution. I'll share it soon :)

AnaghSharma commented 4 years ago

Awesome. Share once done. I'll close the issue post that.

AnaghSharma commented 3 years ago

@giacomorebonato Since you've found the solution, I'll close the issue now. Thanks.