I have universal links setup in my ios app. everything is working to a point, I am using the following url as a test: []
I have the following code inside my scenedelegate:
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
guard userActivity.activityType == NSUserActivityTypeBrowsingWeb,
let incomingURL = userActivity.webpageURL,
let components = NSURLComponents(url: incomingURL, resolvingAgainstBaseURL: true),
let path = components.path,
let queryItems = components.queryItems else {
return
}
}
I get the incoming URL as I expect.
Components returns nothing, it drops to the return statement and ends.
I am not sure what I'm doing wrong with this so any suggestions would be appreciated.