Matthias
Matthias

@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…

Elk Logo

Welcome to Elk!

Elk is a nimble Mastodon web client. You can login to your Mastodon account and use it to interact with the fediverse.

Expect some bugs and missing features here and there. Elk is Open Source and we're actively improving it as a community project. Join us and let's build it together!

If you'd like to report a bug, help us testing, give feedback, or contribute, reach out to us on GitHub and get involved.

To boost development, you can sponsor the Team through GitHub Sponsors. We hope you enjoy Elk!

TAKAHASHI ShuujiDaniel Roe三咲智子 Kevin DengPatakAnthony FuJoaquín Sánchez

The Elk Team