title: Declaring URL in Swift 3
body: <p>How can I declare a URL in swift 3?</p>
  
  <p>This is my attempted code:</p>
  
  <pre><code>var messageURL: URL = URL()
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>var messageURL: Foundation.URL = URL()
  </code></pre>
  
  <p>This is the error: Cannot invoke initializer for type 'URL' with no arguments</p>
  
  <p>Here's some documentation (Swift 3.0) from Apple that I'm having trouble implementing:</p>
  
  <blockquote>
    <p>Properties whose name conflicts with Foundation types after removing their NS prefix will lead to module-qualified type names. For example, if there is a var URL: NSURL, it will be rewritten as var URL: Foundation.URL</p>
  </blockquote>