title: WKwebview content covers the top status bar
body: <p>I followed <a href="http://technical-itch.net/making-a-simple-hybrid-ios8-app-with-swift/" rel="nofollow noreferrer">this</a> tutorial to create a WKwebview which worked but with one problem. The top status bar is covered by the content of the webView.  </p>
  
  <p>Since the webView IS the containerView, how then can the webView go under the status bar in code. Thanks</p>
  
  <pre><code>import UIKit
  import WebKit
  
  class ViewController: UIViewController {
  @IBOutlet var mainView : UIView?
  var webView: WKWebView?
  
  override func loadView() {
      super.loadView() // call parent loadView
      self.webView = WKWebView() // instantiate WKWebView
      self.view = self.webView! // make it the main view
  }
  
  override func viewDidLoad() {
      super.viewDidLoad() // run base class viewDidLoad
      let url = NSURL(string:"https://www.google.com") // make a URL
      let req = NSURLRequest(URL:url!) // make a request w/ that URL
      self.webView!.loadRequest(req) // unwrap the webView and load the request.
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/siVgj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/siVgj.png" alt="enter image description here"></a>}</p>