I'm dealing with the same issue as the person who started this post.
Starting iOS 26.2, after uninstalling Safari, canOpenUrl returns false, but open will work. It's a bug.
guard let url = URL(string: "https://www.apple.com") else {
return
}
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url)
} else {
print("Could not open URL")
}
Topic:
UI Frameworks
SubTopic:
UIKit