Swift 3: NSURL to URL missing init?
<p>I just used XCode 8 and let it convert my existing project. Now I face the error that there is no init function for new URL without parameters.</p>

<pre><code>class fileObj : NSObject, NSCopying, Comparable {
    var URL                   = NSURL()    // initial
...
</code></pre>

<p>The new code looks like:</p>

<pre><code>class fileObj : NSObject, NSCopying, Comparable {
    var myUrl                 = Foundation.URL()    // initial
...
</code></pre>

<p>How should I init the new URL var?    </p>