Enhance Color Management in Xcode

Originator:barlow
Number:rdar://26998112 Date Originated:6/24/2016
Status:Open Resolved:
Product:Xcode Product Version:8
Classification:Enhancement Reproducible:Always
 
Summary:
It is difficult to maintain colors use both programmatically and in IB.  The new color literals are nice, but don't seem to solve this issue.

Steps to Reproduce:
1. Pick a standard color for your app that you want to use as a background color.
2. Use this color as a background color in a storyboard for the navigation bar in multiple view controllers
3. Use the same color values in code used to create a view.
4. Have your designer change their mind on what the background color should be.
5. 😭
6. Manually update all storyboards and code to the new color
7. 🙏 that you didn't miss one.

Expected Results:
To be able to set a variable with a color that could be used both in code and in the interface builder.  Changing the variables color would update that color anywhere the variable is used.  

Currently this is easy to do for anywhere you use a color in code, but not for code AND Interface Builder.

Actual Results:
😭 and 🙏

Version:
Xcode 8

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!