I'm trying to create different themes for an app I'm creating in Xcode, with the latest version of Swift. So basically how I'm thinking to get it to work is
- after the user presses a theme in a special "themes" page, there will be a variable(let's just call the variable 'theme') changed
- according to the variable's value, the other pages will change their colors, styles, etc.
Why I'm asking this question is because I'm not sure how the other view controllers can access the variable 'theme' and its current value. Each view controller class is located in separate files.
I read some other answers to similar questions, but they don't seem to work. Any help would be appreciated