This is an extremely simple weather app that uses the OpenWeatherMap API to get the current weather for a given city. It was built with Swift and SwiftUI. It was a learning exercise for SwiftUI. It is not intended to be a production app. The app requests for the location, and from there, is able to fetch the weather for your given location.
Clone the repo and run the app in Xcode.
The app will ask for your location. Once you give it permission, it will fetch the weather for your location.
Pull requests are welcome. Especially if you are learning SwiftUI and want to contribute to this project.
- Stephanie Diep - Tutorial - SwiftUI Weather App
- OpenWeatherMap - API - OpenWeatherMap API
Do whatever you want with this code. It's not intended to be a production app. It's just a learning exercise.