Lay Out the Views for Our Practice App
In Parts I and II, each chapter pretty much had its own project. But for Part III, each chapter will build on the previous work. This means you won’t be able to cherry-pick chapters but instead will need to progress through them if you want to work through the examples.
The project we’ll use across Part III is an interface for changing a password. Start a new project as we’ve done before by copying the steps from Create a Place to Play with Tests. Use Refactoring as the project name.
Edit Main.storyboard, adding a button in the center of the View Controller Scene. Give it a title like “Change My Password.” Give it the following layout constraints:
- Height Equals 44
- Align Center X to Safe Area
- Align ...
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.