Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storyboard is not showing custom color hex code in XCode 12.0.1

After updating to the latest Xcode, into storyboard I am not able to see actual custom color hex code. It is showing a white(FFFFFF) color hex code all time. Can someone please help me with this? Please check the below screenshot.

enter image description here

like image 304
Mitesh Dobareeya Avatar asked Oct 26 '20 09:10

Mitesh Dobareeya


3 Answers

I have noticed this same problem since the latest XCode Version 12.0.1.

A workaround that works for me is to

  1. Click on the custom color to bring up the color chooser.
  2. The color chooser is the wrong color, but tap on any other color in the color chooser.
  3. Tap Cmd+Z to undo the color change. Magically the original custom color is now selected in the color chooser.
like image 89
Hayd Avatar answered Oct 03 '22 07:10

Hayd


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.

like image 35
Larme Avatar answered Oct 02 '22 07:10

Larme


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

enter image description here

like image 28
Ashish Kakkad Avatar answered Oct 05 '22 07:10

Ashish Kakkad