O'Reilly logo

Swift 2 By Example by Giordano Scalzo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the skeleton

Having defined the requirements, let's start implementing them, splitting the implementation into auto-conclusive phases.

In the previous chapter, we implemented the app using Interface Builder to create the UI, but we mentioned that it is definitely possible to do that entirely by code.

Although Apple provides two ways to do this, either via NSLayoutConstraintss or Visual Format Language, both are really verbose and error-prone; hence, we'll use a nice Cartography library, which permits us to set up constraints in a declarative way without using any hardcoded strings.

Note

A description of Cartography can be found here: https://github.com/robb/Cartography.

Creating the project

In the same way we did for the previous apps, we create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required