The home screen

There is a single view controller that is visible on the screen if you run the empty project app. We have to add the key features from the prototype in order to depict the home screen. Let's start with the name of the place and the weather underneath. The following is the result that we are looking for:

To achieve this, you have to add two labels and change their font size. Position them correctly.

Later in this chapter, we will discuss how to make the layout flexible so that it looks nice on different iPhone screens. For now, we will focus only on standard iPhone 6/7/8 devices.

Let's tale a look at the following steps:

Get Learn Swift by Building Applications 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.