A simple weather app for iOS 12 iPhone that accesses live weather data from OpenWeatherMap's free API
- Current weather conditions for current location
- Current weather conditions for any given location (search)
- Xcode 10+ with an iOS 12+ simulator
- Cocoapods 1.5.3+ (AlamoFire, SwifyJSON, SVProgressHUD, Toast-Swift)
- An OpenWeatherMap API key
- Clone the repo:
git clone https://github.com/acodeguy/weather - Run
pod update(in project root) - Add a Constants.swift file in the root folder of your project (same folder with Info.plist, Assets.xcassets, etc)
- Add the OMW API key and URL
Right-click the yellow Weather folder in your project navigator, New File. Select Swift file. Paste in the below code with your own OpenWeatherMap API key:
import Foundation
let WEATHER_URL = "http://api.openweathermap.org/data/2.5/weather"
let APP_ID = "YOUR API KEY HERE"This project is provided under the GNU General Public License v3.0. Please read LICENSE.md for details.


