-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 902fe59
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
 | ||
|
||
# Clima | ||
|
||
## Our Goal | ||
|
||
It’s time to take our app development skills to the next level. We’re going to introduce you to the wonderful world of Application Programming Interfaces (APIs) to grab live data from the internet. If you’re dreaming of making that Twitter-powered stock trading app then you’re about add some serious tools to your toolbelt! | ||
|
||
|
||
## What you will create | ||
|
||
By the end of the module, you will have made a beautiful, dark-mode enabled weather app. You'll be able to check the weather for the current location based on the GPS data from the iPhone as well as by searching for a city manually. | ||
|
||
## What you will learn | ||
|
||
* How to create a dark-mode enabled app. | ||
* How to use vector images as image assets. | ||
* Learn to use the UITextField to get user input. | ||
* Learn about the delegate pattern. | ||
* Swift protocols and extensions. | ||
* Swift guard keyword. | ||
* Swift computed properties. | ||
* Swift closures and completion handlers. | ||
* Learn to use URLSession to network and make HTTP requests. | ||
* Parse JSON with the native Encodable and Decodable protocols. | ||
* Learn to use Grand Central Dispatch to fetch the main thread. | ||
* Learn to use Core Location to get the current location from the phone GPS. | ||
|
||
### Condition Codes | ||
``` | ||
switch conditionID { | ||
case 200...232: | ||
return "cloud.bolt" | ||
case 300...321: | ||
return "cloud.drizzle" | ||
case 500...531: | ||
return "cloud.rain" | ||
case 600...622: | ||
return "cloud.snow" | ||
case 701...781: | ||
return "cloud.fog" | ||
case 800: | ||
return "sun.max" | ||
case 801...804: | ||
return "cloud.bolt" | ||
default: | ||
return "cloud" | ||
} | ||
``` | ||
|
||
>This is a companion project to The App Brewery's Complete App Development Bootcamp, check out the full course at [www.appbrewery.co](https://www.appbrewery.co/) | ||
 | ||
# Clima |