Xcode 11 add new constraints set zero: use set value instead of default / standard

前端 未结 8 2072
日久生厌
日久生厌 2021-01-30 10:22

I used to use autolayout add new constraints to make simple constraints to superview / relative view like this (for loooong time):

However, recently after upda

相关标签:
8条回答
  • 2021-01-30 10:53

    This behavior seems to be fixed on Xcode 11.4: release notes

    Fixed a bug that prevented entering a 0 constant in the constraint popup editors. (54076090)


    Original Answer:

    I just found this behavior too, I tried adding the constraints 1 by 1 and Xcode actually respected the 0 value.

    My two cents.

    0 讨论(0)
  • 2021-01-30 10:54

    I know that this is no solution, but for temporary solution to prevent you to go through every constraint, I just found out that you get the desired behaviour if you insert '-0' instead of '0', but you have to insert one constraint each time.

    0 讨论(0)
提交回复
热议问题