I would like to define a color scheme for my iOS project to easily replace some colors. Say I have a “primary” color and a “secondary” color used in many elements of my application, and in the future I might want to set a “primary” color for any other value that it currently has.
So far, I have used the UIColor custom category to define and use my colors in code and create a palette with the same colors for use in IB and storyboards.
Thus, replacing colors in code is very simple, but doing it in IB and Storyboard is so painful ... I have not found an easy way to find / replace colors.
Any idea on how I can do this? I am open to any suggestion. Thank you in advance
EDIT 1: Perhaps this issue is not clear enough. I would like to create a scheme such as I can use it both in the code and in IB, but by defining the colors only once and being able to switch colors so that the colors specified in both the code and IB , changed accordingly.
ios colors xcode palette
sonxurxo
source share