title: Check if UIWebView is done loading in Swift
body: <p>I am making an application that loads a UIWeb View and runs a line of code the moment the webpage is completely loaded. </p>
  
  <p>I am using code like this to load the webpage: </p>
  
  <pre><code>    let links = URL (string: "https://example.com")
      let loadpage = URLRequest(url: links!)
      webPage.loadRequest(load)
  </code></pre>
  
  <p>How can I run a piece of code the moment the webpage is done? I have tried some examples online but the webpage stops loading while checking if it has loaded?</p>
  
  <p>Thanks!</p>