title: load html file to UIWebview from documents directory on ios with swift
body: <p>I have an html file and other files that html uses(css,.png) that is saved in the documents directory.How can I load this html file in a UIWebView or wkwebview
  using swift?I have found some examples in objective-c but nothing in swift.I don't know anything about objective-c..</p>
  
  <pre><code>let path=getCurrenttHtmlStartPage()
  var hContent = try String(contentsOfFile: path, encoding: NSUTF8StringEncoding) 
  webView!.loadHTMLString(hContent, baseURL: nil)
  webView!.hidden=false 
  </code></pre>
  
  <p>Path is the path in documents folder. /Users/pmdevios/Library/.../Documents/Content/Html/index.html.</p>
  
  <p>With this way the other files inside html aren't showing(images) so I want to do it with another way like this </p>
  
  <pre><code>webView!.loadFileURL(path, allowingReadAccessToURL: path)
  </code></pre>