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
From the course: Swift: Writing Testable Code
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Using protocols to help with tests3m 2s
-
Handling external dependencies11m
-
Business logic: Overview1m 37s
-
Business logic: Authorization7m 5s
-
Business logic: Location provider7m
-
Business logic: Speed provider3m 33s
-
Business logic: Speed checker6m 15s
-
Using Swinject: Overview1m 5s
-
Using Swinject: Assemblies9m 26s
-
Using Swinject: Assembler6m 4s
-
Building the storyboard10m 34s
-
Building the view controller16m 4s
-
Using SwinjectStoryboard: Overview36s
-
Using SwinjectStoryboard: Demo5m 43s
-
-
-
-