Swift API Calls for Beginners (Networking) - Async Await & JSON

Swift API Calls for Beginners (Networking) - Async Await & JSON

Sean Allen

1 год назад

82,251 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

阿月浑子Cracked pistachio
阿月浑子Cracked pistachio - 03.11.2023 08:07

You are a legend man

Ответить
Parker Rex
Parker Rex - 12.10.2023 03:49

Coming from web world. Finally found a good creator for swift. Time to binge….

Ответить
Ian Frye
Ian Frye - 07.10.2023 00:23

Me writing a network call in python in 3 lines 🫣

Ответить
S B
S B - 29.09.2023 04:51

You explained this so well! Thank you for this!

Ответить
Muhammed Nadeem M A
Muhammed Nadeem M A - 27.09.2023 22:02

Hi Sean, Out of subject can we create an xcframework with third-party dependencies like Alamofire, lottie-ios etc..

Ответить
Pat Govan
Pat Govan - 21.09.2023 16:55

Very good training video and an important training video to watch. I like how you demonstrate network calls and syncing the API data, coding the JSON, and creating a starter page all on one Xcode file. This makes it much easier to follow.

Ответить
BeyzilMusics
BeyzilMusics - 19.09.2023 11:17

My brain hurts, thanks for the video!

Ответить
The Matrix
The Matrix - 19.09.2023 08:44

Good work

Ответить
Fattoo Fittoo
Fattoo Fittoo - 17.09.2023 13:41

how to fix "Function declares an opaque return type, but has no return statements in its body from which to infer an underlying type" i create exactly like video but got this one error, already google it cant really found the solution.

Ответить
sai
sai - 16.09.2023 11:31

please make video about access and refresh token, Where to save in the iOS, how to call the api

Ответить
KalDillard
KalDillard - 30.08.2023 01:38

Thank you! I started out learning iOS until I went to Flutter! I’m looking to learn more Native iOS and you made this easy for me. This is pretty similar to making network calls in Flutter.

Ответить
Thomas Frank
Thomas Frank - 25.08.2023 21:14

Do you know how to get the redirect url when getting status code 301? I need to add query items to the new url. Thanks :)

Ответить
El Jefe Padre
El Jefe Padre - 20.08.2023 18:37

Thanks so much. It is true - for a beginner having all the code in one place makes it easier to understand.

Ответить
Alejo Acosta
Alejo Acosta - 16.08.2023 04:43

I know Sean probably did it for the sake of simplicity.

But for anyone starting out with SwiftUI, @State variables are meant only for local view changes and not for any external state change such as an API call. Ideally this should toggle state changes by subscribing to an ObservableObject along with @Published properties (or even better the new Observable macro if you're targetting iOS 17).

As usual, great vid, Sean.

Ответить
Joshua Scorca
Joshua Scorca - 06.08.2023 23:54

Hi Sean, Thanks for the video!  
Question: Why don't you need to wrap this line in a "do catch" ?
let (data, response) = try await URLSession.shared.data(from:url)

Ответить
deadweight
deadweight - 30.07.2023 11:24

Thank you man, you are the bestest

Ответить
Shippo Boston
Shippo Boston - 29.07.2023 02:16

Literally I watch your videos the past week and realized I wasn't subscribed. Shame on me!

Ответить
Juan
Juan - 25.07.2023 00:10

its ok. I understand. but i try to use a JSON from Woocommerce. ( products, price, description ) but not working. i dont know whats the problem

Ответить