An easy way i can do that in Swift:
First we have to create as many targets as we want schemes, doing click at actual scheme and select New scheme:
Creating at Assets Catalog Colors Set Colors.xcassets a color like:
Then select one Target membership at Colors.xcassets:
After that create another Colors.xcassets:
Then create again another color with same same at this new Colors.xcassets:
Then select another one Target membership at this new Colors.xcassets:
Then assign color by code using same name referenced (we use PrimaryColor), as in the following example:
struct Resources { struct Colors { //struct is extended in Colours } } extension Colors { struct Primary { static let Default = UIColor(named: "PrimaryColor")! } }
And then the implementation:
newLabel.backgroundColor = Resources.Colors.Primary.Default
Finally depending on the scheme chosen, some colors or others will be drawn.
Another way that I have found is next link: