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!

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 Improving Our User Interface Adapting Our Content

Bruce G
Bruce G
5,360 Points

What is the purpose of these constrains?

I am not understanding why I need to use this constrain. Why do we only use them for the left and bottom side?

1 Answer

Jhoan Arango
Jhoan Arango
14,575 Points

Hello Bruce:

Constrains are used depending on the design of your UI, some objects may need more constrains, depending on the location of the object in reference to the view and the objects around it. In this case he only added these two contains because those were the only required ones for this particular design.

In future courses if you are following the track, you will find that he goes into a deeper explanation on constrains.