title: How to open pdf file in swift directly from URL
body: <p>I am new in swift and I am unable to open pdf file from url </p>
  
  <p>my code is like this</p>
  
  <pre><code> @IBOutlet var webview: WKWebView!
  
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view.
  
          webview.navigationDelegate = self
  
          let url = URL(string: "http://www.orimi.com/pdf-test.pdf")
          self.webview.load(URLRequest(url: url!))
  
      }
  
      func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
          print("Start loading")
      }
  
      func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
          print("End loading")
      }
  </code></pre>
  
  <p>I am using this code I am able to open url link and image but not able to open pdf file</p>