Untitled

mail@pastecode.io avatar
unknown
swift
a year ago
551 B
4
Indexable
Never
let config = WKWebViewConfiguration()
let userContentController = WKUserContentController()
        
userContentController.add(self, name: "JSBridge")
        
config.userContentController = userContentController
        
let webView = WKWebView(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: self.view.frame.size.height), configuration: config)
        
let url = URL(string: "https://www.sendo.vn/integration-app/vne?auth_code=xxx&user_id=yyy&platform=zzz&p=abc.html")

let request = URLRequest(url: url!)
webView.load(request)