Skip to content

View current weather. Practiced: Dark Mode, Protocol/Delegate, Closures, Completion Handlers, API, Dispatch, Core Location

Notifications You must be signed in to change notification settings

PhilomathMac/Weatherly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weatherly

weatherly screenshot

Description

Simple app that grabs phone location and displays current temperature and weather conditions.

Skills Practiced

  • 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

Future Features / Fixes

  • 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

Use Instructions

This app involves using an external API. To use the app, clone the project and add your own API key.

  1. Create an account with OpenWeather
  2. Copy your own API key
  3. In the app project, create a Constants struct.
  4. Store your API key in a type property of the Constants struct titled OpenWeatherAPIKey.
struct Constants {
  static let openWeatherAPIKey = "<enter your API key here>"
}

Attributions

This was developed using ideas from The App Brewery's Complete App Development Bootcamp, check out the full course at www.appbrewery.co

About

View current weather. Practiced: Dark Mode, Protocol/Delegate, Closures, Completion Handlers, API, Dispatch, Core Location

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages