Create a weather app from scratch with this SwiftUI Crash Course
Create a simple weather app from scratch with SwiftUI. π€
Weβll learn how to get the userβs current location, get the weather from that location, and display everything in a beautiful UI!
Access the written version of this tutorial and the source files:
β‘ Part 1: https://designcode.io/quick-apps-swiftui-weather-app-1
β‘ Part 2: https://designcode.io/quick-apps-swiftui-weather-app-2
β‘ Part 3: https://designcode.io/quick-apps-swiftui-weather-app-3
π Links mentioned in the video:
β‘ OpenWeather website: https://openweathermap.org/
β‘ HTTP Request with async/await: https://designcode.io/swiftui-advanced-handbook-async-await
β‘ Data from JSON section (for preview data): https://designcode.io/swiftui-advanced-handbook-data-from-json
β‘ OpenWeather API endpoint for New Yorkβs current weather (replace YOURAPIKEY by your API key): https://api.openweathermap.org/data/2.5/weather?q=New%20York&appid=YOURAPIKEY&units=metric
β‘ Reverse geocoding the coordinates: https://developer.apple.com/documentation/corelocation/converting_between_coordinates_and_user-friendly_place_names
π©π»βπ» Source code on Github:
β‘ https://github.com/stephdiep/WeatherApp
πͺ Join our channel and unlock members-only perks:
β‘ https://www.youtube.com/channel/UCTIhfOopxukTIRkbXJ3kN-g/join
ππ» Letβs connect!
β‘ Twitter: https://twitter.com/diepsteph
Part 1
0:00 β Introduction
1:17 β Create Xcode project
2:51 β Get the coordinates
13:14 β Test the application
Part 2
14:25 β Get the weather
20:38 β Test the application
21:09 β Prepare the WeatherView
Part 3
24:08 β WeatherView UI
30:21 β Detailed weather information
36:13 β Conclusion