I have several sets of data that contains the same declared variables but different values, each set in a different file for clarity.
Here is a simplified version of what I'm trying to achieve :
In dataSet1.swift :
let someData = ['Multidimensional Array from Set 1']
let otherData = ['An other Multidimensional Array from Set 1']
In dataSet2.swift :
let someData = ['Multidimensional Array from Set 2']
let otherData = ['An other Multidimensional Array from Set 2']
The app would load one or the other dataset according to the user preference. Eg. in ViewController.swift, I would like to use the data from the loaded dataSet, for example,
print(someData[0]) would show the string Multidimensional Array from Set X according to the current loaded dataSet.
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.