How do I get rid of -16 when doing horizontal layout to the edge of a supervisor in Xcode 6?

When you try to expand the view to the edge of your superview in Xcode 6 storyboards, the generated constraint has a constant of -16. Why is this, and how can I return it to 0?

+6
source share
1 answer

The value -16 is due to the fact that the restriction is set to Superview.trailing/leading Margin , and not to the edge of the supervisor. You can fix this by selecting the restriction and in the information in the upper right corner select the drop-down list for the viewview element and switch relative to margin to off. enter image description here

+23
source

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


All Articles