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 Views and View Controllers Introduction to Views

Zoom in Test Run

When I click play to test the application the zoom is too far in and I cannot see the entire test screen of the iphone. How do I zoom out so that I can see the entire screen?

2 Answers

Shawn, you have a really great question!

For resizing simulated iPhone screen on your screen:

When the simulator is running, select window > scale, and then choose your desired scale. You can also quickly change the scale by using the keyboard shortcut COMMAND + 1, 2, or 3.

For zooming gesture:

In the simulator, you can simulate many gestures that you will be using when building applications. To zoom out, click anywhere on screen and press the option key. After pressing the option key, you will be able to simulate zooming in and out.

If you have any questions, feel free to ask!

Thank you!!