It took me 6 hours to complete this demo. This tutorial was a great start for my iOS app development. Thank you so much. I learnt a lot, my next step is to learn SwiftUI elements and add more functionality on top of this, like automatically changing metric to imperial and vice versa on the user input. Changing the icons automatically when the weather is hot, humid, cold, sunny, changing the background theme (day, night) based on the timing.
@MB-il3bk Жыл бұрын
I could make this explanation easier tbf
@rachidfinge86012 жыл бұрын
Thanks Stephanie! I have experience in ObjC and Flutter, so this tutorial gives me all I need to get started in SwiftUI!
@semilife2 жыл бұрын
Great tutorial. Clear, fast paced and informative. Keep ip the great work look forward to watching other videos from you.
@DesignCodeTeam2 жыл бұрын
Glad it was helpful!
@josuegisber81502 жыл бұрын
Excellent, I’ll rewatch this again
@DesignCodeTeam2 жыл бұрын
Thanks for watching until the end!
@ronniezad3232 жыл бұрын
thanks for kickstarting my iOS dev career...much love❤️
@DesignCodeTeam2 жыл бұрын
You're welcome, thanks for watching!
@markaurelius612 жыл бұрын
Thanks, good pacing and the final result is very polished-looking
@DesignCodeTeam2 жыл бұрын
Thank you!
@eliwhalen6042 жыл бұрын
Best channel for iOS dev, thank you!
@DesignCodeTeam2 жыл бұрын
Glad you like it!
@julianm0808085 ай бұрын
Thanks Stephanie for this awesome tutorial it was definitely really useful. Keep it up. God bless you.
@shubhamku0443 ай бұрын
just started learning swift, and this is a great first project to build
@DesignCodeTeam3 ай бұрын
Great to hear!
@shubhamku0443 ай бұрын
@@DesignCodeTeam can you also add tutorial for uikit project?
@dugrut13252 жыл бұрын
third time around, 1st time I just copied your code, app worked. But now I'm trying to understand the coding...
@tudoriustin222 жыл бұрын
Thank you so much for the tutorial :))
@DesignCodeTeam2 жыл бұрын
You're welcome!
@guntarsreiss2319 Жыл бұрын
You can actually use simulator to test the app AND get the location. Just select Features/Location and choose any you want. So it's not mandatory to use your iphone.
@tilupifilms2 жыл бұрын
Would it be possible to give us a tutorial on how to include unit tests on swiftUI please? It would be great!! 😊🙏
@slushpuppii Жыл бұрын
It should give you the option when first creating the project.
@Giovanniafram2 жыл бұрын
at 12:10 swift does not permit you to write that on separate lines it will have to be a continuation or else you will get an error
@WardA-zh3si8 ай бұрын
Fantastic tutorial.
@MarkBTomlinson2 жыл бұрын
Excellent presentation and explanation, thank you!
@DesignCodeTeam2 жыл бұрын
Glad you enjoyed it!
@michaeIbonq10 ай бұрын
best tutorial to swift !
@ZFighter-d7k Жыл бұрын
nice and detailed tutorial. thanks
@dugrut13252 жыл бұрын
I'm exhausted! Thanks
@collinyang6882 жыл бұрын
in 18:07, were did you get the huge chunk of code?
@_txrtle30192 жыл бұрын
^
@anthonywright3248Ай бұрын
Found it in the gitHub files linked > Under 'Managers' folder.
@christophebeaulieu49162 жыл бұрын
Hello from Montréal 😀 amazing tutorial
@Lian5able2 жыл бұрын
Thanks ,great tutorial.
@DesignCodeTeam2 жыл бұрын
You're welcome!
@MonkeyEdits1012 ай бұрын
hey i'm getting an error. the code " location = locations.first?.coordinate" the error says Value of type 'CLVisit' has no members 'first'. what do i do?
@rajdhakate6172 жыл бұрын
Her accent made me stick to the very end. And great tutorial. Thank you
@karanvirbilbile6018 Жыл бұрын
It was very helpful thank a lots
@Setchuko2 жыл бұрын
Mam it shows like Thread 1: EXC_BAD_ACCESS(code=2, address=0x7ffee5163ff8) what is the solution ?
@GhulamMurtazaPanhwar Жыл бұрын
why me getting this error Fatal error: No ObservableObject of type LocationManager found. A View.environmentObject(_:) for LocationManager may be missing as an ancestor of this view.
@siabedi5892 Жыл бұрын
You are amazing!
@_thekick3r2 жыл бұрын
I'm having an unkown error in the do catch part in ContentView (19:57), wherein my program keeps on crashing. It says to see backtrace for more information, but it says that there is an unknown error in the do catch part. Does anyone know the solution to this problem I'm having?
@WestCoastAce272 жыл бұрын
Great job. Obj-C dev here - Swift is much easier.
@DesignCodeTeam2 жыл бұрын
It sure is!
@speedyclaxton21742 ай бұрын
when doing @StateObject var locationManager = locationManager(). i end up with an error that just says "circular reference" any ideas why ? my code up to this point has been exactly the same as in the video.
@mv1421Ай бұрын
Not sure if you figured it out, but it should be LocationManager() and not locationManager()
@omercakmak3099Ай бұрын
where did you get the response body from? I don't get where we can copy and paste that from
@omercakmak3099Ай бұрын
ok found it from the github source code
@tanmaydabhade77453 ай бұрын
Hi, is there any way to eliminate the first share location process? I tried to run it on appear and it takes a lot of time
@mohammederrazi2 жыл бұрын
Good work 👍
@infinitespace19822 жыл бұрын
When I try to connect my phone with mac, the build fails and I get this errror Signing for "weather" requires a development team. Select a development team in the Signing & Capabilities editor.
@visualarts6686 Жыл бұрын
Where do I get the response body?
@vamp77622 жыл бұрын
hey guys! so im stuck on the location manager in the code location = locations.first?.coordinate, it isn’t reading the first location tag and is giving me an error. any suggestions?
@apollogamblin82462 жыл бұрын
I keep getting the error "Value of type 'Double' has no member 'roundDouble'" Does anyone have any ideas.
@FreedivingTrainer2 жыл бұрын
She made extension func for this
@ellively78872 жыл бұрын
감사합니다.
@nblljk55762 жыл бұрын
I wanted to ask you what method is used in this course, is it MVC, MVVM or something like that...just because I am curious please 🙏
@applelover7772 жыл бұрын
The weather logo doesn't change in the WeatherView. For example, even though its cloudy, the logo displays systemName: "sun max".
@DesignCodeTeam2 жыл бұрын
Yes, that's why in the conclusion I mentioned this as a possible feature to improve the app! :) - Stephanie
@RyanGregoire-i5p Жыл бұрын
This is my First Programming Tutorial I used to code in javascript but I hate js I am thinking of relearning my coding skill from scratch
@supagoon83 ай бұрын
great video
@nateperry38392 жыл бұрын
How do you get the information from the JSON, having difficulty finding it, thank you
@brightuniverse46922 жыл бұрын
I'm really confused about the code you can get from the text content to copy and paste. I don't understand where it is.
@DesignCodeTeam2 жыл бұрын
Hi, it's available on designcode.io: Part 1: designcode.io/quick-apps-swiftui-weather-app-1 Part 2: designcode.io/quick-apps-swiftui-weather-app-2 Part 3: designcode.io/quick-apps-swiftui-weather-app-1
@_txrtle30192 жыл бұрын
Where do you get the struct ResponseBody and the others below it in the Weather manager?
@ashk52592 жыл бұрын
Here you go, from the GitHub: github.com/stephdiep/WeatherApp/commit/d0210ed7d4b9775d58d48f6fb842d04b9fd7a1a1 struct ResponseBody: Decodable { var coord: CoordinatesResponse var weather: [WeatherResponse] var main: MainResponse var name: String var wind: WindResponse struct CoordinatesResponse: Decodable { var lon: Double var lat: Double } struct WeatherResponse: Decodable { var id: Double var main: String var description: String var icon: String } struct MainResponse: Decodable { var temp: Double var feels_like: Double var temp_min: Double var temp_max: Double var pressure: Double var humidity: Double } struct WindResponse: Decodable { var speed: Double var deg: Double } } extension ResponseBody.MainResponse { var feelsLike: Double { return feels_like } var tempMin: Double { return temp_min } var tempMax: Double { return temp_max } }
@alexanderkhrulev66882 жыл бұрын
Thank you for this tutorial🙃 how can i make autoreload? For example every 1 hour data reload automatically?
@gabrielarubio6130 Жыл бұрын
I'm having a fatal error that states "Couldn't parse weatherdata.json as ResponseBody" does anybody have any idea on how to fix this error?
@Rory_-ty7fp Жыл бұрын
Literally going through this problem now as well. Have you checked spelling, not that that solved it for me!
@khaleelobrien2277 Жыл бұрын
same issue, something is wrong with the way she is parsing that weatherData.json
@yatharthc6475 Жыл бұрын
@@khaleelobrien2277 did you get it?
@yatharthc6475 Жыл бұрын
did you fix it?
@isamalzareer77212 жыл бұрын
if for example I want to replace the coordinates in this code with the coordinates depending on the location how do I do it? let coordinates = Coordinates(latitude: 12.123456, longitude: 98.987654)
@DesignCodeTeam2 жыл бұрын
Hi, the code already gets the current location of the user. If you wish to hard-code some coordinates, you'll need to create a CLLocationCoordinate2D (see developer.apple.com/documentation/corelocation/cllocationcoordinate2d). - Stephanie
@jackychen88032 жыл бұрын
Good stuff
@DesignCodeTeam2 жыл бұрын
Thank you!
@Александр-х4д2 ай бұрын
Why does my location take so long to load? how to make it faster or instantly
@TheIsaPerezShow5 ай бұрын
I’m lost on the part about the json file
@ryanhua6570 Жыл бұрын
I imported your code from github and it still doesn't work. is anything outdated?
@jleuthardt2 жыл бұрын
I can't get the decode chunk at 18:05 because its locked behind a paywall. either I'm missing something or that's just shitty
@DesignCodeTeam2 жыл бұрын
Hi, You can get it in the source code: github.com/stephdiep/WeatherApp - Stephanie
@Virgin_mc28 күн бұрын
@@DesignCodeTeam thx u so much!
@drawing_kim05232 жыл бұрын
Hello, Stephanie! I'm studying for iOS while watching tutorial videos. I have a question while watching the video. The weather app area is in New York, USA. Can I change it to Seoul, Korea? Or should I use it in New York like a video?
@DesignCodeTeam2 жыл бұрын
Hi! New York is only the location for the dummy data, but you can change it to whichever location you wish, it doesn't matter! Also, the real data you'll get once you build the app will be the current weather conditions from your physical location. ☺️ - Stephanie
@gradientO2 жыл бұрын
Awesome
@DesignCodeTeam2 жыл бұрын
Appreciate it!
@indipow822 жыл бұрын
When I get to testing the application it fails. Shows nothing but a black screen and gives me and error code. EXC_BAD_ACCESS. I have checked ove the code several times and cant sort the bug.
@DesignCodeTeam2 жыл бұрын
Hi! Try to Clean Build Folder (Shift + Command + K) and build your application again. Also, you won't be able to get the weather on the Simulator, so make sure to test on an actual device. - Stephanie
@codejunkie63002 жыл бұрын
@@DesignCodeTeam I get the same error, even when testing on an actual device. I'm using Xcode 13.2.1 and iOS 15.2. It's occuring on "@main" in the main app swift file (which points to ContentView()).
@stevencooper23932 жыл бұрын
I'm getting a fatal error thread one whenever i try to fetch the data... how do i work around that?
@tanmaydabhade77453 ай бұрын
Yep same issue., the progress view does not end, the app has been going on for the last @# minutes still no data
@gigipataridze38852 жыл бұрын
can you link where you copied new york weather from ? Very good Video ❤️
@DesignCodeTeam2 жыл бұрын
Hi! Just replace the YOUR_API_KEY by your own: api.openweathermap.org/data/2.5/weather?q=New%20York&appid=YOUR_API_KEY&units=metric - Stephanie
@НураулетДаулетхан10 ай бұрын
where did you get icon folder?
@juniorrrr-r5v2 жыл бұрын
I'm getting an error saying 'cannot find previewWeather In scope' is there a way to fix it?
@DesignCodeTeam2 жыл бұрын
Hi! You'll need to add the preview data yourself by adding the load function with dummy JSON data for the weather: kzbin.info/www/bejne/jmO6aoCGn9d8mM0 The Data from JSON section can be found (with the load function) at designcode.io/swiftui-advanced-handbook-data-from-json - Stephanie
@juniorrrr-r5v2 жыл бұрын
@@DesignCodeTeam great, thank you so much!
@pokerchannel699126 күн бұрын
i like swift
@nafeezahmed94682 жыл бұрын
I tried to run the app on simulator it crashed! Can't we just run it on simulator? it showed me some error in fatalError like Thread1: FatalError
@DesignCodeTeam2 жыл бұрын
Hi! You're supposed to be able to run it in the Simulator, and see the WelcomeView. However, you can't get the location on the Simulator (it's not a feature supported by the Simulator) and you'll need to test it on an actual device. - Stephanie
@Martin-ml3ly2 жыл бұрын
@@DesignCodeTeam Actually you should be able to use the location inside the Simulator as well. Check Features > Location in the Simulator menu, there you can select predefined locations or even use a custom one.
@_txrtle30192 жыл бұрын
is it possible to give us the assets? would be really helpful
@Sasan_Soroush4 ай бұрын
You can simulate location on Simulator, so you don't need the real device.
@lucasgaming61Ай бұрын
Why do I still have errors tho
@ADJ_Music Жыл бұрын
where can I get Jason file ?????
@kingshukdeb2 жыл бұрын
Do we need to have an iPhone to test if location permission is working or not?
@wolski37142 жыл бұрын
nope, location works fine in emulator
@tarunchauhan974 ай бұрын
best part was you hide your location coordinates .... hahaha
@Bhuvagopal-p4h8 ай бұрын
How can I get images just like you?
@asemel-khoike61542 жыл бұрын
Excuse me, I think this is a problem about weatherRow the top and bottom on this design are not on the same line how to fix it
@tharindudarshana64802 жыл бұрын
Thank You for the tutorial. I've created the app but I can't see the weather.name in the Weather App in my device - iPhone 11 Pro Max. Its the same case for 11 Pro Max in iOS simulator. But in iOS 13 Simulator I can see it. Any particular reason? Very good tutorial regardless. Thank You!
@DesignCodeTeam2 жыл бұрын
Hi Tharindu! The weather.name shouldn't be a problem on any device. Just make sure that when you query the data from the API, you get the name in the data you fetched. - Stephanie
@relax_music6682 жыл бұрын
I have the problem too. Always show progressview .I debuged fetched api data,but not show weatherview.
@fpshunter2 жыл бұрын
whats does it mean "manager.delegate = self" - 4 min 56 sec
@DesignCodeTeam2 жыл бұрын
We need to assign a delegate to our CLLocationManager instance, so we're assigning the class we're in (LocationManager) as its delegate - Stephanie
@coldchickennoodles5575Ай бұрын
Great video, but you don't really explain any line of code you write you're just reading it.
@patrickmunyi2 жыл бұрын
Hi, great work on the App. I'm getting an error in the Content View when I try to load the weather data. The "if weather = weather " code in the Content View code is throwing an error and advising I use boolean
@michaelvarghesethomas88782 жыл бұрын
Leaving this answer here in case someone needs it in the future: This is most likely because you haven't yet used the variable weather yet. So the suggestion is that if you are not planning on using the variable, replace it with a boolean conditional instead
@michaelvarghesethomas88782 жыл бұрын
Leaving this answer here in case someone needs it in the future: This is most likely because you haven't yet used the variable weather yet. So the suggestion is that if you are not planning on using the variable, replace it with a boolean conditional instead
@Rory_-ty7fp Жыл бұрын
@@michaelvarghesethomas8878 Hi, you seem to understand quite a lot, I have copied her code word for word but on the weatherView page it can never make the preview as it says that there is a fatalerror in the ModelData? any ideas?
@tech4days1622 жыл бұрын
How do you find apis and libraries for other apps/ programs
@DesignCodeTeam2 жыл бұрын
Just do a simple research on Google for the service you're looking for with "API" at the end of your search terms and I'm sure you'll find an API/library for that. Otherwise, there's this list of public APIs hosted on Github: github.com/public-apis/public-apis Hope that helps! - Stephanie
@pedrodelmondes82039 ай бұрын
Where can i find the assets???
@markpeck60 Жыл бұрын
How can we add a radar?
@emmanuelmensah9902 жыл бұрын
❤️
@DesignCodeTeam2 жыл бұрын
🙏
@pierre-louislrt17872 жыл бұрын
When I archive the project I've Cannot find 'PreviewWeather' in scope
@DesignCodeTeam2 жыл бұрын
Oh, sorry about that! ModelData.swift should've been moved outside of the Preview Content folder. Then the Archive will succeed 🙂 -Stephanie
@pierre-louislrt17872 жыл бұрын
@@DesignCodeTeam Greate thanks, And how can I add the forecast weather and some animation ? thanks
@DesignCodeTeam2 жыл бұрын
Just head over to openweathermap.org/api to learn which endpoint to call to get forecast weather. You can get the 4 days, 16 days or even 30 days forecast with the OpenWeather API. As for the animation, I suggest you to follow Meng's tutorials where he teaches how to make animations with SwiftUI! - Stephanie
@Shreddderrr6 ай бұрын
i get fatal error "error fetching weather data" any idea why?
@Owen02_5 ай бұрын
I’m also getting this error, were you able to fix it?
@Shreddderrr5 ай бұрын
@@Owen02_ yes, you need to remove the double quotes when adding the api key in the link and check for any extra spaces added
@Shreddderrr5 ай бұрын
@@Owen02_ If you get any error. copy paste the code and add "keep the code 100% as it is and fix the errors only" in chatgpt. it will keep the code styling as it is and fix the error for you. Then you can ask what was the error and how it fixed it
@Owen02_5 ай бұрын
@@ShreddderrrWhich quotes specifically? And also Is it the part of the code that’s made in the video at 16:39 ?
@Shreddderrr5 ай бұрын
@@Owen02_can you copy paste your code
@Pablo-yu7wo2 жыл бұрын
If i use windows, can i do ios apps with swiftUI?
@DesignCodeTeam2 жыл бұрын
Hi! In the tutorial we're using Xcode, and it's only available on Mac, unfortunately 😕 - Stephanie
@coffeecelestia64432 жыл бұрын
You can try cloud services, but it's expensive, some like 100$/month for remote screen access to device, and it's has problems with testing on your iOS device
@polirtohgl12285 ай бұрын
How to get assets?
@agent47in512 жыл бұрын
how can get full source code ?
@DesignCodeTeam2 жыл бұрын
Hi, you can access it here: github.com/stephdiep/WeatherApp
@AngelMartinez-ok7bg2 жыл бұрын
For some reason the weather is displayed in kelvins
@poonamsoni68592 жыл бұрын
Tell us about your secret resources
@DesignCodeTeam2 жыл бұрын
Hi! I would say the tutorials about SwiftUI on Design+Code, as it's a big library covering many different concepts related to SwiftUI, as well as Hacking with Swift. Those are the resources I go back to the most! - Stephanie
@ADJ_Music Жыл бұрын
can anyone help me out
@siracseyidov159711 ай бұрын
Yes İ can help
@EquipteHarry25 күн бұрын
Johnson Brenda White Patricia Miller Melissa
@lfcblaze Жыл бұрын
this doesn't work - fails at too many levels.
@progra75029 ай бұрын
👍
@yanzhenhuang98202 жыл бұрын
小姐姐的母语是中文嘛?
@maxgs37942 жыл бұрын
I dont know how to code, i just came because she looked cute