From the course: Swift: Writing Testable Code

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Building the storyboard

Building the storyboard

- [Instructor] Let's go ahead and implement the UI layer for our app. In the project navigator, let's select the main.storyboard. In the right panel, let's open up the attributes expector for the review and we will set the background color to black. Now let's add some labels to display the speed. In the object library, let's do a search for label. Drag it over to our Vcontroller and position it in the bottom left corner of the view. Now let's set the text color to be blue. Let's select other. In the pencil view, let's select midnight blue. Let's update the font size to B100. We can update the text for the label to 62. With the label highlighted, let's add some constraints. In the bottom tool bar, let's click the add new constraints button. Go up and uncheck the constraint to margins. We constraint the left side of the view to 16 points from the super view. In the bottom from 16 as well. Then we will click add to constraints. To update the labels frame, let's click the update frames…

Contents