Xcode 12 Interface builder: Custom Background Color is shown wrong

After setting a custom background color for a uiview, from xib file, say F0F0F0, it is reflected correctly on app. But next time when i launch xcode and see the color in the color picker on xib file, it shows the default white color (FFFFFF).

Any solution for this?
I see the problem as well in 12.1
Problem did not show in 11.3 for instance.

Apparently, the custom color is reset when opening the picker.

You should file a bug report.
Good move.

Don't forget to close the thread.

Noticed this same problem in Xcode 12.4 also.

A workaround that works for me:

  1. Click on the custom color to bring up the color chooser.
  2. The color chooser is the wrong color, but select any any other color in the color chooser.
  3. Do CMD+Z to undo the color change. Magically the original custom color is now selected in the color chooser.

Hope it helps!

Xcode 12 Interface builder: Custom Background Color is shown wrong
 
 
Q