Question : swift open url
Answered by : mobile-star
guard let url = URL(string: "http://www.google.com") else { return //be safe
}
if #available(iOS 10.0, *) { UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else { UIApplication.shared.openURL(url)
}
Source : | Last Update : Fri, 13 Mar 20