title: How to open another .html file inside WKWebView when a link gets tapped?
body: <p>I am using SwiftUI along with UIViewRepresentable to instantiate a WKWebView to display my html content:</p>
  
  <h2>WebView</h2>
  
  <hr>
  
  <pre><code>struct WebView : UIViewRepresentable {
  
  let request: URLRequest
  
  func makeUIView(context: Context) -&gt; WKWebView  {
  
      return WKWebView()
  }
  
  func updateUIView(_ uiView: WKWebView, context: Context) {
      uiView.load(self.request)
    }
  }
  </code></pre>
  
  <h2>SwiftUI View</h2>
  
  <hr>
  
  <pre><code>let localFilePath = Bundle.main.url(forResource: "EULA for ALP app", withExtension: "html")
  
  VStack{
  
     WebView(request: URLRequest(url: localFilePath!))
  
  }.padding([.leading,.trailing],20)
  </code></pre>
  
  <h2>HTML</h2>
  
  <hr>
  
  <p>When I tap the span nothing happens as if its not registering the hit, I want to use another local HTML file like the one I am using inside the WebView so when the span gets tapped the WebView displays the corresponding file. I would also like to mention that HTML gets displayed correctly just without the href working.</p>
  
  <pre><code>&lt;span href="file://practitionerPolicy.html"&gt;Tap Me!&lt;/span&gt;
  </code></pre>