iOS Swift - Navigation
Given this code snippet in AppDelegate, what will happen when the app opens with URL scheme
myapp://profile?id=123?
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
if url.scheme == "myapp" && url.host == "profile" {
print("Open profile with id: \(url.query ?? "none")")
return true
}
return false
}