I\'m curious if there\'s a way to detect a change of the displayed website inside a UIWebView. In an app I\'m working on we\'re using a UIWebView t
UIWebView
in Swift 4
func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -> Bool { if request.url?.absoluteString == "http://www.example.com/step3.htm" { // The user reached step 3! } return true }