title: Is this a Swift bug? Opening a File in a webView
body: <p>I am starting working my way through this new language, which I like a lot ... but it seems to to be buggier than I expected.</p>
  
  <p>I took a simple example on youtube (<a href="https://www.youtube.com/watch?v=Rva9ylPHi2w" rel="nofollow">https://www.youtube.com/watch?v=Rva9ylPHi2w</a>) of building a webView in the root viewController and loading a webpage.  This example works fine with an external webpage, but not a local file.  I get a blank screen when trying to open a local file.</p>
  
  <p>The code below is for the ViewController.swift file.  </p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
      @IBOutlet var WebView : UIWebView
  
      var URLPath = ""/files/test.html""
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view, typically from a nib.
          loadAddressURL()
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      func loadAddressURL() {
          let requestURL = NSURL (string:URLPath)
          let request = NSURLRequest(URL: requestURL)
  
          println("the requestURL is: \(requestURL)")
  
          WebView.loadRequest(request)
      }
  
  }
  </code></pre>
  
  <p>You can see I added a println to show the URL request being used and it appears backward:</p>
  
  <p>With a local file I get "the requestURL is: /files/test.html", which is where I have the sample html file located.</p>
  
  <p>Is their something I did wrong or should I file this with Apple?</p>