xcode,  auto-layout,  swift

Positioning views relative to one another with auto-layout

Positioning views relative to one another with auto-layout was fairly tricky until...

Positioning views relative to one another with auto-layout

Positioning views relative to one another with auto-layout was fairly tricky until, Adding Layout Constraints by Control-Dragging, was intruded in Xcode.

Now, to make one view 10pt below another view, all we have to do is to ctrl-drag first view into the second view and select a constraint.

Subscribe to The infinite monkey theorem

Get the latest posts delivered right to your inbox