I have around 10 Swift 3 applications.
They are almost similar but there are some fields that changes in each application and I would like that these values could be used in the entirely program (for example: the name of each company, the primary colour on the application, etc). These values will be constant in the whole program.
I would like to create one constants file by application so the values that will be used on each application will be different from the others so I will not have to repeat on each program each value all the time. For example, if I set a constant named company
and change its value to company1
, company2
, etc... depending on the file I can use that company
constant in all the applications. So I will not have to replace the variable manually in the whole application each time I create a new one. Just replacing the corresponding values to each application.
So, is it possible to create a constants file? Maybe adding a special class. I guess that maybe it has another specific name but I could not find it.
Thanks in advance!