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 Introduction to Auto Layout in iOS A History Lesson Frame vs Bounds

Vinny Harris-Riviello
Vinny Harris-Riviello
11,898 Points

When the square goes smaller why does Pasan mention that bounds remains the same?

It is very clear that when you rotate the square while you are altering the frame the bounds remains the same, but before that when the frame changed and the drawing area became smaller then bounds should have changed, then why does Pasan mention bounds remains the same.

1 Answer

Eric Hodgins
Eric Hodgins
29,207 Points

That's because Pasan applied a transform to make it smaller. When transforms are applied the bounds remain the same. You can also check out this link as well that might help explain it better.

http://sketchytech.blogspot.com/2014/12/swift-notes-on-relative-positioning-and.html