Download JSON from API in Swift w/ URLSession and escaping closures | Continued Learning #22

  Рет қаралды 18,137

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Пікірлер: 43
@yokohibarashi1386
@yokohibarashi1386 3 жыл бұрын
Extremely informative, very clear, and easy to understand. The way you build up to this point can not be understated. The fact that while you coding you explain in great detail the code and its concepts and at the end you quickly summarized going over the main points is what makes you an amazing teacher. Thank you very much.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Wow Yoko! Thanks for the comment :) I'm very happy the videos are helping you!
@MrCosine99
@MrCosine99 2 жыл бұрын
Actually, it can not be OVERstated, i.e. no matter how much we praise Nick's style, it wouldn't be too much. He's really that good.
@Dois-
@Dois- 3 жыл бұрын
It looks so hard when u first look at it, but it's pure joy after you finally get your data :D. Thank you Nick!
@themaryamk61
@themaryamk61 Жыл бұрын
After 2 years passing from uploading this video, still I haven't found anything more clear and easier to understand for downloading with dataTask and completionHandler! Thanks for your amazing tutorial
@kal5211
@kal5211 Жыл бұрын
Excellent tutorial. I really struggled to understand API calls in Swift and this finally helped it click. I appreciate you taking a slower more expletive approach. You don't take the user's knowledge for granted - each line is explained clearly.
@mustaqeezahmad5591
@mustaqeezahmad5591 3 жыл бұрын
You are a hero. You cover all things. You are a superhero. I am watching all of your videos.
@faikcoskuncakr7418
@faikcoskuncakr7418 2 жыл бұрын
Assuming you are a teacher. You are the best teacher i know
@coffeeCatPeanutDust
@coffeeCatPeanutDust 3 жыл бұрын
Fantastic! I especially appreciate the time in the post-video review, in which you skim over the forward pass of the entire process. Very informative. Thank you again.
@KulturanCov
@KulturanCov 2 жыл бұрын
Great video. Watched it all first and then instantly tried to replicate it. Worked great. But had to look up how to put weak self and escape in it exactly. Thanks Nick!
@zk3714
@zk3714 Жыл бұрын
Thank you. Your video is very helpful for beginners to learn. I really like the way you explain things which helps me a lot!
@AlexKaharudin
@AlexKaharudin 3 жыл бұрын
This is very helpful, I hope you can continue, “how to show loading bar before data appear” or “pull to refresh” Thank you so much, cheers
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Hi Alex! Great recommendations. I'll see if I can incorporate these into some upcoming videos!
@AlexKaharudin
@AlexKaharudin 3 жыл бұрын
@@SwiftfulThinking looking forward for it!
@magedmohmed4403
@magedmohmed4403 Жыл бұрын
Very Very thank you Nick , Really your content is very useful for us 🥰🥰
@mrbrn20
@mrbrn20 11 ай бұрын
Amazing tutorial, learned a ton from this 👌
@lumi6394
@lumi6394 3 жыл бұрын
Amazing! You are the best!
@hashcat5721
@hashcat5721 2 жыл бұрын
7:58 37 - guard 200...299 ~= response.statusCode else { return }😊
@m.d.perkins1407
@m.d.perkins1407 Жыл бұрын
Alternatively `guard (200...299).contains(response.statusCode) else { return }`
@dendd5357
@dendd5357 9 ай бұрын
최고의 강의 감사합니다.
@KeironCheesbrough
@KeironCheesbrough 2 жыл бұрын
Great video! Thanks
@markme7092
@markme7092 2 жыл бұрын
Hi nick, please make a videos to download json images from api! Your videos are very helpful, I really learned a lot. Thanks
@asigivati1382
@asigivati1382 7 ай бұрын
in 17:50 you don't have strong ref to self, so you don't need to use [weak self] there.
@ugayashan8659
@ugayashan8659 Жыл бұрын
Hey Nick, can we put @MainActor macro right above the getPosts method to manipulate the same result?
@ashleym6157
@ashleym6157 21 күн бұрын
Nick! Data from the JSON website is not appearing on my canvas or simulation and Im getting 0 errors, not sure why.................
@sondoskannous3306
@sondoskannous3306 2 жыл бұрын
amazing!!!!✨✨✨✨✨✨
@RichardBaileyrichoncode
@RichardBaileyrichoncode 4 ай бұрын
Is there a video on making custom decoders? For other than json?
@SwiftfulThinking
@SwiftfulThinking 4 ай бұрын
No, what else are you decoding?
@peterbien4049
@peterbien4049 2 жыл бұрын
I am an avid reader of your tutorials, they help me a lot. But I have a problem with this example. When I call the downloadData function, I get the following error message: Invalid conversion from throwing function of type '(Data?) throws -> ()' to non-throwing function type '(Data?) -> ()' Can you give me a hint?
@Mahadev-x7u
@Mahadev-x7u 3 жыл бұрын
Thank you....
@satulagiprojek
@satulagiprojek 3 жыл бұрын
hi nick! do you have alamofire 5 example for this #22 ? hope you can make it one! cheers
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Hi Lai! No, I don't have this yet. I am only covering Apple APIs in these playlists, not third-party libraries like Alamofire. I will probably do a separate playlist for this in the future. The code, however, should be very similar to this video, except instead of using the native URLSession, you would use Alamofire's get request.
@thahiraf1317
@thahiraf1317 3 жыл бұрын
I downloaded JSON Data from API, then I want to post id to a server when clicks the button, how I can do this.
@Ahmet-k2b2i
@Ahmet-k2b2i 9 ай бұрын
👏
@danielniels22
@danielniels22 Жыл бұрын
15:25
@Nunny25
@Nunny25 3 жыл бұрын
thanks
@zabaizabai2
@zabaizabai2 3 жыл бұрын
typicode urls says : nothing there
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Hi zabaizabai2! Thanks for letting me know. I've been using this website for years and have never had an issue... until today. It looks like the site is temporarily down right now. I've contacted the owners and I'm assuming they will fix it very soon. If not, I will remake the video with a more reliable API haha. Thanks for watching!
@zabaizabai2
@zabaizabai2 3 жыл бұрын
@@SwiftfulThinking yup it's back now
@imranullah2508
@imranullah2508 2 жыл бұрын
@@SwiftfulThinking Hi mac you explain every things very beautiful but this give error data not showing plz remake the video with another API
@peterbien4049
@peterbien4049 2 жыл бұрын
I recognized the error 😂
Download JSON from API in Swift with Combine | Continued Learning #23
34:43
SwiftUI Networking With URLSession
18:32
iosMastery
Рет қаралды 301
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
How to use escaping closures in Swift | Continued Learning #20
21:56
Swiftful Thinking
Рет қаралды 20 М.
Codable, Decodable, and Encodable in Swift | Continued Learning #21
35:23
Swiftful Thinking
Рет қаралды 22 М.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Introductions to Closures in Swift
25:02
Stewart Lynch
Рет қаралды 12 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН