SFSafariViewController crash: The specified URL has an unsupported scheme

后端 未结 4 1911
渐次进展
渐次进展 2021-02-07 06:23

My code:

if let url = NSURL(string: \"www.google.com\") {
    let safariViewController = SFSafariViewController(URL: url)
    safariViewController.view.tintColor         


        
4条回答
  •  旧巷少年郎
    2021-02-07 07:14

    Use WKWebView's method (starting iOS 11),

    class func handlesURLScheme(_ urlScheme: String) -> Bool
    

提交回复
热议问题