if let url = URL(string: "https://www.google.com"), UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url, options: [:]) }