Geuis
Geuis

Reputation: 42277

Constraints not getting updated in xcode

I'm working on a little app and trying to understand constraints better.

I just noticed that I have constraints on the left and selected 'width', and then the size inspector on the right for the same constraint.

enter image description here

enter image description here

What I'm seeing is that if I change the 'width = 100' value on the left, it doesn't update in the size inspector or the preview. And when I update it in the size inspector, it updates the preview but doesn't change the value on the left.

What exactly is happening here?

Upvotes: 1

Views: 154

Answers (1)

André Slotta
André Slotta

Reputation: 14030

in the so called "Document Outline" (on the left) you can give your constraints names that help you to identify them easier. they do not have to be in any special format. instead of width = 100 you could simply call it width constraint for my button. to change the actual value use the size inspector on the right.

Upvotes: 2

Related Questions