Great question!
--
You could use @UIApplicationDelegateAdaptor
to get the delegate function from UIKit.
“Action Pressed!” will be printed when the user presses your quick action. Check this out for more info on @UIApplicationDelegateAdaptor
.
However, I’m not entirely sure how to tell ContentView()
that the user pressed a quick action. I was thinking about using @EnvironmentObject
, but I couldn’t modify its value from AppDelegate
. I’ll ask a question on the Developer Forums and keep you posted.
Edit: Someone on the Dev Forums suggested @Published
properties, like this:
ContentView will now know that you pressed a quick action.
But it still won’t work if “it needs to go to the scene delegate.” I’ll let you know if I find something.