title: How do I get Activity Indicator on WkWebView Programmatically in Swift?
body: <p>Does anyone know how to get an Activity Indicator to pop up and then disappear on a WKWebView(done programmatically). I have tried other's methods but either ran into errors or didn't have the Activity Indicator show up at all.</p>
  
  <p>My code for loading the WKWebView:</p>
  
  <pre><code> var webView : WKWebView!
  
      override func loadView() {
          super.loadView()
  
              let webConfiguration = WKWebViewConfiguration()
              webView = WKWebView(frame: .zero, configuration: webConfiguration)
          webView.uiDelegate = self
              view = webView
      }
  
      override func viewDidLoad() {
  
              self.webView.load(NSURLRequest(url: URL(string: "https://stackoverflow.com")!) as URLRequest);
      }
  </code></pre>
  
  <p>Could I possibly send the activity indicator to a UIAlertController or something like that?</p>