I need to make Application Design that can be customizable according to User's wanted Theme.
I should only change colour at one place only and whole application theme should be changed.
NOTE: Different Theme Contains Different Theme Colours.
What I have did is Make a colour palette like this.

In this image, if I change ThemeColor to Green instead of Blue then where ever I have used the ThemeColor, then it should be done Green instead.
But I can't able find a way to customise this colours. Or any other way, I am missing out to achieve my requirement?
Any help appreciated..
If you are developing your project with target iOS 7+ and using default iOS UI objects, you can manage theming by changing tintColor property of UIView and using UIAppearance Protocol.
And Yes, you can change tintColor from storyboard/xib too.
Best tutorial for this: https://www.raywenderlich.com/108766/uiappearance-tutorial
--- UPDATE ---
For all iOS version: How to create Multiple Themes/Skins for iphone apps?
I hope this will help you. :)
Create a App theme color in your code as follows :
#define APPTHEME_COLOR [UIColor colorWithRed:238.0/255.0 green:82.0/255.0 blue:87.0/255.0 alpha:1.0]
Use this Theme Color in all controls wherever you require. Once you change this RGB value, your Theme will get changed.
One more thing to say, you don't need to set colors in Storyboard. You have to set it in Code everywhere.
Hope it helps..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With