Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App with Swift 2.0 Improving Our User Interface Recap: Auto Layout

David Keck
David Keck
5,723 Points

What on earth are the two types of constraints? Not horizontal and vertical?

What are the two types of constraints?

1 Answer

I think what you're looking for is; Position and Size. For an element to be displayed on the screen we need to provide two pieces of information; Position and Size. Position and Size then both have two "variables" in them. Position: x- and y -coordinates Size: Width and height

David Keck
David Keck
5,723 Points

That right there is a great answer. Thank you, Roo!

Thank's a lot.