title: Access Array in different Swift file
body: <p>I have an Array called results that I created in a file I have called ParseJSON.swift that is called from ViewController.swift, but when I want to access the array in a separate file called MyView.swift, it says "Use of unresolved identifier 'results'"</p>
  
  <p>Obviously the issue is that MyView.swift does not have access to the elements in ParseJSON.swift, but I was wondering what the typical solution is for this?</p>
  
  <p>In ParseJSON.swift:</p>
  
  <pre><code>var results = [Int]()
  </code></pre>
  
  <p>In MyView.swift:</p>
  
  <pre><code>var rect = DataRectangle&lt;Int&gt;()
  rect.data = results &lt;&lt; error here
  </code></pre>