Reacting to Home Screen Actions with SwiftUI

Is there a way to react when your app is opened via home quick actions? You can still enable them via the .plist or via UIApplication.shared.shortcutItems. But with AppDelegate being replace by @main now, I'm having a little trouble finding out when a quick action is selected.

Cheers!

I would use an @UIApplicationDelegateAdaptor, that way you can still have a traditional app delegate that can handle these kind of actions.

Of course it would be great if someone points out a native way that I missed.
Thanks. I had completely overlooked the existence of @UIApplicationDelegateAdaptor.

Unfortunately the only call I'm able to get working is the application(application:didFinishLaunchingWithOptions:) method. I'm going to assume this thing is still very much in beta, just like it's labeled in the documentation.

Thanks again.
Reacting to Home Screen Actions with SwiftUI
 
 
Q