Xcode 7 - vertical limit

Well, I probably missed something. It was a fairly simple operation in Xcode 6, but I cannot find the same feature in Xcode 7.

Consider this layout:

enter image description here

I want to limit the vertical distance between label 1 and label 3. In Xcode 6, I can just select Multi Label 1 and Label 3, go to Editor → Pin → Vertical Spacing. However, this Pin parameter is no longer in Xcode 7. I can set the vertical distance between the nearest elements, but not the elements of my choice.

Does anyone know if this vertical space option was just rearranged to another tab? Or if he left?

(maybe I can do it programmatically, but I just want to know if there is a way to do this through the Storyboard)

+5
source share
2 answers

You can ctrl drag the third mark to the first mark and release ctrl and select the vertical distance

enter image description here

+15
source

I continued to search and found the following link where it suggests adding a limit to the vertical spacing.

Cut horizontal distance between two UIImage views in Xcode 7

Note. I have added a restriction. When I tried to make another update after pressing Ctrl, I saw the selected Vertical Spacing option. Strange, since the option "Vertical distance" does not appear for the first time.

0
source

Source: https://habr.com/ru/post/1232051/


All Articles