title: Loading PDF From Documents URL
body: <p>I am fairly new to iOS dev so I apologise for any and all newish questions I ask. I seem to be having issues while loading a PDF to my WebView in Swift.
  Printing out all the files in the Documents directory results in:</p>
  
  <p><strong>file:///Users/adriandavidsmith/Library/Developer/CoreSimulator/Devices/B537EBE4-14AE-439A-B84B-31342E233367/data/Containers/Data/Application/E791BF20-CC53-4FBB-B34A-F73CED74EB5D/Documents/ST_Business%20Times_07022016.pdf</strong></p>
  
  <p>However, when I attempt to load that file into a WebView nothing gets shown. As if it is unable to find the file.</p>
  
  <pre><code>if let pdf = NSBundle.mainBundle().URLForResource("ST_Business%20Times_07022016", withExtension: "pdf", subdirectory: "Documents", localization: nil){
  
  let req = NSURLRequest(URL: pdf)
  webView.loadRequest(req)
  </code></pre>
  
  <p>I am certain I am missing something extremely small and frustrating!</p>
  
  <p>Thanks in advance!</p>