title: How to reference classes from other folder
body: <p>Today my mentor wanted me to create folders to store .swift files. I created 1 new folder (named &quot;abc&quot;) in finder, and moved 3 files (&quot;Album&quot;, &quot;DataController&quot; and &quot;Song&quot;) in it. Then I dragged the folder to project and chosed &quot;create copy if needed&quot;, &quot;folder reference&quot;.</p>
  <p><a href="https://i.stack.imgur.com/RZm9q.png" rel="nofollow noreferrer">Screenshot</a></p>
  <p>Now I couldn't reference the Song class in Song.swift. I did a research, found an answer that said I don't need to import or include file to use, the classes in swift are global, but I still received &quot;Use of undeclared type&quot; errors, as you can see.</p>
  <p>My question is do I need to do any import or include like Java? if not then how can I reference class in Song.swift or other files in &quot;abc&quot; folder?</p>
  <p>Thanks!</p>
  <p>EDIT: Wrong screenshot!</p>