title: Load variables from different files swift
body: <p>I have several sets of data that contains the <strong>same declared variables</strong> but different values, each set in a different file for clarity.</p>
  
  <p>Here is a simplified version of what I'm trying to achieve :</p>
  
  <p>In <code>dataSet1.swift</code> :</p>
  
  <pre><code>let someData = ['Multidimensional Array from Set 1']
  let otherData = ['An other Multidimensional Array from Set 1']
  </code></pre>
  
  <p>In <code>dataSet2.swift</code> :</p>
  
  <pre><code>let someData = ['Multidimensional Array from Set 2']
  let otherData = ['An other Multidimensional Array from Set 2']
  </code></pre>
  
  <p>The app would load one or the other dataset according to the user preference. Eg. in <code>ViewController.swift</code>, I would like to use the data from the loaded dataSet, for example,</p>
  
  <p><code>print(someData[0])</code> would show the string <code>Multidimensional Array from Set X</code> according to the current loaded dataSet.</p>
  
  <p>Is that possible, or is there a better practice ? I thought of using classes, but I don't want to store all the dataSets in the memory, only the one the user wants.</p>