Skip to content

Instantly share code, notes, and snippets.

@tsraveling
Created April 18, 2017 23:53
Show Gist options
  • Save tsraveling/a267aced5ae4256c562b5b6e379367d0 to your computer and use it in GitHub Desktop.
Save tsraveling/a267aced5ae4256c562b5b6e379367d0 to your computer and use it in GitHub Desktop.
UIWebView delegate
// MARK: - UIWebView delegate -
func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -> Bool {
return true
}
func webViewDidStartLoad(_ webView: UIWebView) {
}
func webViewDidFinishLoad(_ webView: UIWebView) {
}
func webView(_ webView: UIWebView, didFailLoadWithError error: Error) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment