Building a Weather Application From Scratch
Fetching Weather Data for the User's Location
|2||Setting Up the Project 07:15|
|3||View Controller Containment 12:08|
|4||Fetching Weather Data 05:59|
|5||Removing Object Literals 07:54|
|6||Creating a View Model 13:09|
|7||Parsing the JSON Response 13:56|
|8||Handling Errors and Notifying the User 14:28|
|9||Adding Flexibility With Protocols 14:11|
|10||Creating the Day and Week View Models 07:33|
|11||Creating the User Interface of the Day View Controller 12:52|
|12||Organizing Fonts and Colors 06:45|
|13||Implementing the Day View Model 15:55|
|14||Writing Unit Tests for the Day View Model 12:57|
|15||Implementing the Week View Model 12:37|
|16||Writing Unit Tests for the Week View Model 07:10|
|17||Fetching Weather Data for the User's Location 13:32|
|18||Increasing Testability With Protocol-Oriented Programming 14:47|
|19||Replacing Optionals with Enums and Associated Values 09:30|
The application we're building is shaping up nicely. It's time to make it a little bit more functional. The application is currently only capable of fetching weather data for a predefined set of coordinates. This severely limits the appeal of the application.
In this episode, we use the Core Location framework to fetch the location of the device. The application will use that information to show the user weather data for their current location. That will make the application much more useful.
Are you ready to step up your game?
Cocoacasts Plus helps Swift and Cocoa developers take their education serious without being overwhelmed.