webView(_:didCommit:)
Tells the delegate that the web view has started to receive content for the main frame.
Declaration
optional func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!)Parameters
- webView:
The web view that is loading the content.
- navigation:
The navigation object that uniquely identifies the load request.
Discussion
After the navigation delegate’s webView(_:decidePolicyFor:decisionHandler:) method approves the navigation response, the web view begins processing it. As changes become ready, the web view calls this method immediately before it starts to update the main frame.