how to open google chrome in swift
问题 i'm almost new to swift . i want to open google chrome whenever user press an specific button. I found this :: let chromeURL = "googlechrome:\(presenter.createOrderApp(data: data, aptId: aptID))" //UIApplication.shared.openURL(URL(string: chromeURL)!) if UIApplication.shared.canOpenURL(NSURL(string: chromeURL)! as URL) { UIApplication.shared.openURL(NSURL(string: chromeURL)! as URL) } else { let alertController = UIAlertController(title: "Sorry", message: "Google Chrome app is not installed",