I try to find a way to deal with multiple targets (deploy multiple app from one project), i don't know how to define a UIColor and use it in storyboard (i can do that well for UIImage). My idea is to switch the value of this color according of the target with macros, someone know if it's possible ?
Perhaps define a color :
var myColor : UIColor
#ifdef target1
myColor = UIColor(red: 249.0/255, green: 249.0/255, blue: 249.0/255, alpha: 1.0)
#ifdef target2
myColor = UIColor(red: 210/255, green: 100/255, blue: 90/255, alpha: 1.0)
#endif
Or duplicate storyboard to have one storyboard by target. Use the info-target1.plist, info-target2.plist ?
And call this variable "myColor" in storyboard
If there is no solution, i think that i need to set all the attributes : color, font, size, programmatically and not in storyboard.
Which method do i need to follow?
Thanks