Weather Forecast App
Build an app that fetches current conditions and a 5-day forecast from a public weather API based on the user's location, displaying temperature trends in a chart. Learners practice Core Location, async networking, JSON decoding, and Swift Charts.
- Estimate
- ~11h
- Steps
- 6
- Completed by
- 0
- Proposed by
- codeseed.app
SwiftUI · CoreLocation · Swift Charts
Project roadmap
- 01
Request location access
~1.5hUse Core Location to request permission and fetch the user's current coordinates.
- 02
Fetch weather data
~2.5hCall a public weather API with async/await and decode the JSON response into typed models.
- 03
Build the current-conditions UI
~1.5hDisplay current temperature, conditions, and an icon.
- 04
Build the 5-day forecast chart
~2.5hRender forecasted temperatures over the next 5 days using Swift Charts.
- 05
Add refresh and error states
~1.5hSupport pull-to-refresh and show a friendly error view on network failure.
- 06
Cache the last successful response
~1.5hPersist the last successful forecast for offline viewing.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack