I am developing an iOS application, and within the settings of the app, I will allow the users to have light or dark mode. The app, in default, will be light mode, but if the user changes it to dark mode, it will change labels/backgrounds/buttons, etc.
I plan to do this by storing the light or dark mode in Shared Defaults, and when the pages load, I will check that.
If it is dark mode, I know I can change the colors on demand within the ViewDidLoad(), but that seems like way too much work. I have the set of colors I need here:
I know I can set the label to this specific color if I want like so...
but I do believe this is controlled by the device level dark/light mode settings. If there a way I can create a template to control the colors? Im sure I can create a function to adjust the colors of everything, but having to create an outlet for everything can be confusing as times.
Any tips for this?