title: Detect when a link is clicked in a WKWebView
body: <p>How do you detect when a link was clicked in a WKWebView?  I'm looking for the equivalent of this in a UIWebView.</p>
  
  <pre><code>- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
  {
      if(navigationType == UIWebViewNavigationTypeLinkClicked)
      {
  
      }
      return YES;
  }
  </code></pre>
  
  <p>I tried this in the <code>WKNavigationDelegate</code> but I only ever get <code>WKNavigationTypeOther</code> for all requests even when clicking on links. </p>
  
  <pre><code>- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
  {
      if(navigationAction.navigationType == WKNavigationTypeLinkActivated)
      {
  
      }
      decisionHandler(WKNavigationActionPolicyAllow);
  }
  </code></pre>