Simple app that grabs phone location and displays current temperature and weather conditions.
- UI Layout
- Autolayout and constraints
- Dark Mode
- Protocol/Delegate Pattern
- Closures/Completion Handlers
- Use APIs
- HTTP Requests
- JSON Encoding/Decoding
- Grand Central Dispatch
- Organizing Code via Extensions
- MVC Pattern
- Code Snippets
- Core Location
- Toggle temperature units by clicking on unit label
- Show some form of loading view to user while waiting for location data to update view
- Alert view - show error to user when failure encountered
This app involves using an external API. To use the app, clone the project and add your own API key.
- Create an account with OpenWeather
- Copy your own API key
- In the app project, create a Constants struct.
- Store your API key in a type property of the Constants struct titled OpenWeatherAPIKey.
struct Constants {
static let openWeatherAPIKey = "<enter your API key here>"
}
This was developed using ideas from The App Brewery's Complete App Development Bootcamp, check out the full course at www.appbrewery.co