Xcode 6 and limitations - Greyed out equal widths option

I am trying to use restrictions on xcode 6 with side-by-side objects, but when I use the β€œadd missing restrictions” option, all the elements change correctly, except for the side-by-side buttons, where they remain the same size, but one of they are forced out of view.

View Image

And I think I need to use the Equal Heights constraint, but it's gray :(

Strikethrough Restriction Image

Can anyone help?

+5
source share
2 answers

You need to right-click and drag from one of the objects to another to enable this option (it should know what heights should be equal)

+13
source

You also can:

  • In the Xcode document layout, use Shift or Command and click on the elements for which you want to add an equal size constraint.
  • Then click the Pin button.
  • Now you can check the box to add constraints of equal width or equal height.
+1
source

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


All Articles