I've added a custom URL scheme to my Xcode project (I'm using SwiftUI).
In the AppDelagate file I've added:
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
print(url.absoluteString)
print("work")
return true
}
When I to Safari (sampleurlscheme://) in either the emulator or a physical device the code is not being executed (i.e. the logs do not show etc), But it is taking me to the app.
Is there something I'm missing or could this be a bug ?