I want to add a new label to a view and I want it to be laid out and positioned like this.
There are x3 constaints here.
And I want to add them to this new label here.
Let’s see how we can do it. Let’s start with the simple one. The width.
Now let’s get it centered
OK. Only one missing now is tying it relationally to something on the top.
We can add that by simply adding a top constraint like its pair with value 108.
Great. Orange is good. Just means we need to adjust the layout. Which we can do with
Cmd alt =
Voila! New laid out label.