Make a Place to Play

Let’s make a new project for this chapter’s learning experience. Follow the steps for Create a Place to Play with Tests to create a new project, but give it the name Snapshot. Delete its initial test file.

We’ll use the predefined storyboard, adding some visual elements. Edit Main.storyboard. Feel free to add any UI elements you want using correct Auto Layout constraints with no warnings.

If you arranged your own elements with no warnings, you can proceed to the next section. Or you can follow along with this example. Open Main.storyboard and select View Libraries Show Library from the Xcode menu or press Shift--L. This will bring up the Object Library. Drag a label, a slider, and a button into the View Controller ...

Get iOS Unit Testing by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.