title: Cannot assign value of type 'ViewController' to type 'WKNavigationDelegate?'
body: <p>I'm new to use webkit.</p>
  
  <p>I want to give delegate my WKWebView to my view controller, but it give me error:</p>
  
  <blockquote>
    <p>Cannot assign value of type 'ViewController' to type 'WKNavigationDelegate?'</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>import UIKit
  import WebKit
  class ViewController: UIViewController {
  
      @IBOutlet weak var webKitComponent: WKWebView!
  
      override func viewDidLoad() {
          super.viewDidLoad()
          webKitComponent.navigationDelegate = self
      }
  
  }
  </code></pre>