title: Load local web files & resources in WKWebView
body: <p>Unlike with UIWebView and previous versions of WKWebView (iOS 10 &amp; macOS 10.12), the default load operation for local files has moved from <code>Bundle.main.path</code> to <code>Bundle.main.url</code>. Similarly, <code>loadFileURL</code> has also become the default function to load local resources in WKWebView.</p>
  
  <p>I know that <code>.path</code> and <code>.url</code> are entirely different and have both worked in the past – <code>.path</code> historically being the default-chosen method; however, it seems that the latest versions of Swift have broken most, if not all, <code>.path</code> solutions. The <code>.path</code> solutions seem to now <em>flatten</em> the directory hierarchy, putting all of the CSS, JS, and any other sub-directory contents, into one big directory. This causes loading errors when WKWebView attempts to load index.html, for example, with a linked, sub-folder stylesheet (ie. <code>/css/style.css</code>).</p>
  
  <p>After seeing numerous questions and countless uncertain/broken answers to match, is there a quick and painless solution for implementing a WKWebView that can load local resources (including linked CSS/JS files), without any workarounds?</p>