Mars Mars - 2 years ago 374
Swift Question

Example of implementing 'WKNavigationDelegate' method 'didReceiveServerRedirectForProvisionalNavigation' method to follow redirects

I need a simple example in Swift to illustrate how I would implement the

method to follow redirects.

Answer Source

Nothing needs to be done in this method to follow a redirect response. WKWebView will follow a redirect response without any further implementation necessary in the WKNavigationDelegate method didReceiveServerRedirectForProvisionalNavigation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download