So the old way of handling openURL calls in UIKit was to use the following in an AppDelegate:
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { ...
Unfortunately the new @main SwiftUI this is redirected to
.onOpenUrl { url in ...
Thus we miss the dictionary OpenURLOptionsKey.sourceApplication which I would like to determine which app called mine, and then can make the appropriate actions as I have a use case that would require limiting certain scheme urls to be used by 3rd party apps and not others.
What's the best practice to do this? I've not been getting anywhere with the documentation, or searching here. It looked like I might have got a lead on it via onContinueUserActivity/NSUserActivityTypeBrowsingWeb but that doesn't get called either.