Storyboard is not showing custom color hex code in XCode 12.0.1
Solution 1:
I have noticed this same problem since the latest XCode Version 12.0.1.
A workaround that works for me is to
- Click on the custom color to bring up the color chooser.
- The color chooser is the wrong color, but tap on any other color in the color chooser.
- Tap Cmd+Z to undo the color change. Magically the original custom color is now selected in the color chooser.
Solution 2:
Almost the same idea work around and quicker without needing to change the color (and then reverse):
-
Select your color (this will make the color picker appear) in the drop list.
-
Select again your color (with the picker still shown) in the drop list (not in the color picker window), it will update the picker to your color.
Solution 3:
Apple has now fixed this issue in Xcode 12.5
Fixed an issue where the custom colors swatch in an inspector’s color properties displayed an incorrectly offset focus indicator.
Reference: Apple Xcode 12.5 Release Notes