Рет қаралды 132,437
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: designcode.io/quick-apps-swif...
➡ Part 2: designcode.io/quick-apps-swif...
➡ Part 3: designcode.io/quick-apps-swif...
🔗 Links mentioned in the video:
➡ OpenWeather website: openweathermap.org/
➡ HTTP Request with async/await: designcode.io/swiftui-advance...
➡ Data from JSON section (for preview data): designcode.io/swiftui-advance...
➡ OpenWeather API endpoint for New York's current weather (replace YOURAPIKEY by your API key): api.openweathermap.org/data/2...
➡ Reverse geocoding the coordinates: developer.apple.com/documenta...
👩🏻💻 Source code on Github:
➡ github.com/stephdiep/WeatherApp
🪄 Join our channel and unlock members-only perks:
➡ / @designcodeteam
👋🏻 Let's connect!
➡ Twitter: / 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