title: Swift - Opening web view links modally
body: <p>So I have a web view displaying a page and would like to open any links in a new view controller containing a web view modally (like twitter and Facebook do). </p>
  
  <p>I have worked out how to get the url of the link clicked:</p>
  
  <pre><code>func webView(webView: UIWebView, shouldStartLoadWithRequest request: NSURLRequest, navigationType: UIWebViewNavigationType) -&gt; Bool {
      let youClicked = request.URL!
      print(youClicked)
      return true
  }
  </code></pre>
  
  <p>But haven't managed to work out how I can pass this value into a web view on another page and present that view controller modally as a popover.</p>
  
  <p>Any ideas?</p>