title: iOS Swift WebView issues
body: <p><img src="https://i.stack.imgur.com/BWgKQ.png" alt="StoryBoard Image"> </p>
  
  <p>I am new to iOS programming and trying my hands on making simple <code>TableViewCell</code> based app on click of which I open a <code>webView</code> with a dynamic URL.</p>
  
  <p>In my main.storyboard, I have added a <code>UIViewController</code>, in which I have added <code>Webview</code> and <code>NavigationBar</code>.</p>
  
  <ol>
  <li><p>The webView always opens up in full screen. So if I add a Navigation bar or back button, it does not show up in the view.</p></li>
  <li><p>How can I navigate back to my table view page which contains a list of items, from the webView?</p></li>
  </ol>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>import UIKit
  import WebKit
  
  class WebViewController: UIViewController, WKNavigationDelegate {
  
      var webView: WKWebView!
      func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
          title = webView.title
      }
      override func viewDidLoad() {
          super.viewDidLoad()
          let url = URL(string: webURL)!
          print(url)
          webView.load(URLRequest(url: url))
      }
  
      override func loadView() {
          webView = WKWebView()
          webView.navigationDelegate = self
          view = webView
      }
  }
  </code></pre>
  
  <ol start="3">
  <li><p>Right now, in above code, I have added webView as a simple variable.
  As soon as I make it an <code>@IBOutlet</code> and link to this controller, the code throws <code>SIGBART error</code>. Any reason?</p></li>
  <li><p>I want to use navigations methods of webview like:</p>
  
  <pre><code>@IBAction func backAction(sender: AnyObject) {
      if webView.canGoBack {
          webView.goBack()
      }
  }
  
  @IBAction func forwardAction(sender: AnyObject) {
      if webView.canGoForward {
          webView.goForward()
      }
  }
  
  @IBAction func refreshAction(sender: AnyObject) {
      webView.reload()
  }
  
  @IBAction func stopAction(sender: AnyObject) {
      webView.stopLoading()
  }
  </code></pre>
  
  <p>but since I am not able to add WebView as an outlet, the above methods do not work for me.</p></li>
  </ol>
  
  <p>TableController code from where I am performing segue on click of a row:</p>
  
  <pre><code>func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
      performSegue(withIdentifier: "recipeWebView", sender: self)
  }
  </code></pre>