title: WKWebView equivalent for UIWebView's scalesPageToFit
body: <p>I am updating my iOS app to replace <code>UIWebView</code> with <code>WKWebView</code>. However I don't understand how to achieve the same behavior with <code>WKWebView</code>. With <code>UIWebView</code> I used <code>scalesPageToFit</code> to ensure the web pag was displayed with the same size as the screen size (so as to appear full screen without scrolling).</p>
  
  <p>I found that solution on the web however it does not work :</p>
  
  <pre><code>- (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation {
      NSString *javascript = @"var meta = document.createElement('meta');meta.setAttribute('name', 'viewport');meta.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no');document.getElementsByTagName('head')[0].appendChild(meta);";
      [webView evaluateJavaScript:javascript completionHandler:nil];
  }
  </code></pre>