I have a HTML form that has certain fields which i am opening inside a UIWebview. On click of a particular button i want to do a in app action.
The approach i\'m usi
For swift 4.2
Button code in HTML side:
Продолжить покупки
UIWebViewDelegate method:
func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebView.NavigationType) -> Bool {
if request.url?.scheme == "inapp" {
if request.url?.host == "home" {
// do something
}
}
return true
}