title: Suppress WKWebView from scaling content to render at same magnification as UIWebView does
body: <h3>Problem</h3>
  
  <p>Using <code>WKWebView</code> in place of <code>UIWebView</code>, I noticed that the contents of the <code>WKWebView</code> were massively scaled down as compared to my <code>UIWebView</code>. I'd like the <code>WKWebView</code> to stop doing that, and just respect my CSS values literally, the way <code>UIWebView</code> would.</p>
  
  <h3>Context</h3>
  
  <p>I use web views in my native iOS app for the contents that go inside popovers on an iPad where I'm displaying informational content. It's great being able to give this to content and design folks and say, "just drop in some HTML content, referencing the linked CSS file". </p>
  
  <p>All of this worked just great when using <code>UIWebView</code>.</p>
  
  <p>But popovers are often quite compact.</p>
  
  <h3>What I'm Experiencing</h3>
  
  <p>In my narrow popovers, the content is scaled down as if my content where an entire web page being miniaturized to fit. I can see that WKWebView was primarily intended for folks building alternate browsers on iOS or building hybrid apps, where the WKWebView is essentially, taking over the screen.</p>
  
  <p>The magnification factor in WKWebView is not something one can set. Sure, the user can zoom in, but that defeats the purpose. I'm not looking for a zoomed in viewport; I'm looking for the entire content to fit and word-wrap like it would with UIWebView.</p>
  
  <p>With WKWebView, in the simulator, I'll see the sizing I want if I bump up my body text size to 50px instead of 14px. This code however, doesn't even help when on the device, so inflating my CSS sizes is not an option either!</p>
  
  <h3>What's Wrong with UIWebView?</h3>
  
  <p>Well, nothing really. It's not (yet) deprecated in iOS8, perhaps b/c it has usefulness still, as I'm experiencing. I did notice however, that WKWebView was fast. And I've seen some speculation that the writing is on the wall for UIWebView. I thought: "Why not adopt the more modern API in iOS8 now?"</p>
  
  <p>So, I continue to use UIWebView for now, but I'd like to switch over to WKWebView if I could get it to respect my CSS sizing.</p>
  
  <p>Here's my original CSS that UIWebView renders nicely, but which WKWebView in a popover will render in really tiny fonts:</p>
  
  <pre class="lang-css prettyprint-override"><code>body {
      font-family: "HelveticaNeue";
      font-size: 15px;
      line-height: 17px;
      color: #000000;
  }
  
  h1 {
      font-family: "HelveticaNeue-Bold";
      font-size: 18px;
      line-height: 20px;
      color: #000000;
  }
  
  
  h2 {
      font-family: "HelveticaNeue-Bold";
      font-size: 16px;
      line-height: 18px;
      color: #000000;
  }
  </code></pre>