if #available(iOS 10, *) { UIApplication.shared.open(URL.init(string: UIApplicationOpenSettingsURLString)!, options: [:], completionHandler: { (success) in }) } else { UIApplication.shared.openURL(URL.init(string: UIApplicationOpenSettingsURLString)!) }