(This should be a reply to the answer from mjcotr. But for some reason the reply does not seem to work as expected.)
Thank you, that looks exactly like what I was looking for. I haven't had heard about @NSApplicationDelegateAdaptor before.
I'll give it a try!
Thanks, Michael
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: