@myell0w@mindly.social
Lead Engineer at @mindnode, speaker, trainer, coach. Love psychology, climbing and kitesurfing
Head-scratcher:
I want to present a Popover from a ToolbarItem. Fine, that’s easy, just attach a .popover(isPresented:)
modifier to the ToolbarItem.
But what if the Toolbar is hidden (yes, macOS…)? Or if the ToolbarItem is in the Overflow Menu? Or if the ToolbarItem was removed from the Toolbar?
I still want to allow presenting my UI (e.g. via Main Menu/Keyboard Shortcut), but in that case I want to present it as a Sheet or detached Window.
Is there any good way to handle this? This used to be super simple and straightforward in UIKit/AppKit…