Weather App - SwiftUI is a weather app that uses the OpenWeatherMap API and built with SwiftUI. Get the current weather for current location and check out the 5 day forecast.
- Designed with MVC architecture
- Swift 5
- SwiftUI
- JSON & Codable
- ObservableObject
- OpenWeatherMap API
- XCode 15
- Clone or download the project to your local machine
- Open the project in XCode.
- Replace
"YOURAPIKEY"
with your valid Openweathermap API Key inOpenWeatherAPI.swift
- Run the simulator.
class OpenWeatherAPI {
var baseURL = "https://api.openweathermap.org/data/2.5"
let apiKey = "YOURAPIKEY"