Xcode automatically changes the xml storyboard

I recently upgraded Xcode to 6.3.2. After editing the storyboard, I noticed some strange changes through git: All

cocoaTouchSystemColor="colour"/>

Knots

were changed to

 red="value" green="value" blue="value" alpha="value" colorSpace="calibratedRGB"/> 

in the xml file of the storyboard (I definitely did not make these changes).

eg:

 cocoaTouchSystemColor="darkTextColor"/> || || \/ red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> 

Does anyone know where this came from? I assume this is new behavior from the new version of Xcode, but these are just gues. In addition, are these two values ​​100% identical? so, for example, behind the constant "darkTextColour" the RGB value is 0,0,0?

Thanks.

+6
source share
2 answers

Xcode has a long history of changing storyboard files on its own. It does the same with xib files. It comes from Xcode, by design, and there is nothing that people outside of Apple can do but deal with it. Create a bug with Apple. If you want, discard this change using git or any source control you use.

+4
source

This is an optimization. Xcode does this automatically when you change the format of the XML storyboard. You can also see that the version numbers at the top of the XML have been updated.

And yes, darkTextColor has always been completely black, so it's still the same color.

+1
source

Source: https://habr.com/ru/post/988586/


All Articles