Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 - Vertical Spacing Constraint

Tags:

ios

xcode7

Okay I'm probably missing something. This was a fairly simple operation in Xcode 6, but I can't seem to find the same option in Xcode 7.

Consider this layout:

enter image description here

I want a vertical spacing constraint between Label 1 and Label 3. In Xcode 6, I can just multi select Label 1 and Label 3, go to Editor -> Pin -> Vertical Spacing. That Pin option, however, is no longer in Xcode 7. I can set vertical spacing between nearest elements, but not elements of my choice.

Does anyone know if that Vertical Spacing option was just re-arranged to another tab? Or if it's gone?

(I can probably do this programmatically, but I just want to know if there's a way to do it via Storyboard)

like image 857
yeesterbunny Avatar asked Sep 22 '15 19:09

yeesterbunny


People also ask

What is vertical spacing in Swift?

Vertical spacing to top layout guide This constraint means space from top of your view to the top layout guide of parent view. Now top layout guide is a margin that parent view takes up by default which is 20 points in height. These 20 points are taken so that your view does not overlap the status bar.

What is Stackview spacing?

Discussion. A stack view uses this property to define the minimum distance between views within a gravity area and between neighboring views in adjacent gravity areas. The default value for the spacing property is 8. 0 points.


1 Answers

You can ctrl drag the 3rd label to the first label and release ctrl and select vertical spacing

enter image description here

like image 79
Teja Nandamuri Avatar answered Oct 08 '22 01:10

Teja Nandamuri