I noticed something very annoying with Xcode: I have some storyboards for which certain views size & position are systematically updated when I open them. This is annoying especially when working with a team.
Here how I produce this behavior:
- I pull the app from a git repository
- Open an affected storyboard doing no modification at all
- git diff already tells me differences like
$ git diff
...
- <rect key="frame" x="576.99999828648401" y="11" width="170" height="20"/>
+ <rect key="frame" x="577" y="11" width="170" height="20"/>
...
- <rect key="frame" x="518.99999921768904" y="7" width="228" height="30"/>
+ <rect key="frame" x="519" y="7" width="227.99999841338541" height="30"/>
Is this happening to anybody else ?
The question is:
Why is my storyboard getting modified when I'm only opening it, and how to prevent it ?
Notice:
I realized this seems to happen only on <rect />
contained into label
s & textField
s