iOS constraint equation values

Viewed 1247

From Auto Layout Guide

I'm trying to find out what the values of the left and right views in a constraint equation are.

Currently this is how I see it.

The origin-point (0,0) in the coordinate system is at the top left.

Therefore views.attribute that are closer to the top and left are smaller.

In the image posted above. RedView.Leading has a higher value than BlueView.trailing. The equation is satisfied because 8 is added to BlueView.trailing.


The same would apply to the circled constraint in the image below. superView.top is less than greyView.top because superView.top is on origin.x .

Auto Layout Guide


My question is are the values relative to the origin point ?

3 Answers
Related