Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 replaces colorSpace in storyboard files

when I upgraded to Xcode8, of course it converted the .storyboard files to the newest version. When I cleaned-rebuilded the application, I noticed that the background color isn't the same as before. Interesting fact: xcode8 automatically replaces

colorSpace="calibratedRGB"

to

colorSpace="custom" customColorSpace="sRGB"

My question: the calibratedRGB is a deprecated thing and I should not use is anymore? Or just apple converted the storyboard badly?

like image 568
Simon Lackfi Avatar asked Sep 27 '16 13:09

Simon Lackfi


1 Answers

I had something similar. The majority of my storyboards were fine. However some colors were wrong.

In the color picker there's a small gear icon in the upper right, which lets you choose a color space. For most this was set to sRGB.

However a few labels had their text color in the "Generic RGB" color space. I can't explain how this happened.

Changing those rogue colors to sRGB corrected their colors.

like image 107
Graham Perks Avatar answered Oct 22 '22 05:10

Graham Perks