How to create a Generic Networking Layer in iOS apps (Refresh Tokens, Combine, Async/Await, SwiftUI)

preview_player
Показать описание
Want to learn how to create a generic networking layer in iOS apps? Or sign requests and refresh access tokens? Or show a login screen when the token expires in SwiftUI?

Watch this FREE mentoring session now to learn how to deal with common networking and authorization challenges in iOS apps 🧑‍💻

Like and share this content with someone that you believe will benefit from it.

---

Subscribe to our channel ↴

You can also find us on ↴

Caio ↴

Mike ↴

Visit our website ↴

How to Build iOS Apps with Swift, TDD & Clean Architecture series ↴

Caio & Mike's Book Suggestions ↴
Рекомендации по теме
Комментарии
Автор

Not only impressed by the tecnical content, but with how good Caio is in capture what the student is struggleing with

Joao-nngn
Автор

This is one of the best videos I have watched on this topic. I have coupled the HTTP part and the decoding part so many times. As you point out, it quickly becomes a mess with a bunch of different if statements to handle different APIs and things like an empty 204 or a 307 redirect which either do not return JSON or a different JSON than a 200 response.

mistymu
Автор

Outstanding video. Needed that in my project. Great. Thanks a lot! :D

maciusessa
Автор

could you please assessed my project and close some " grey spots " I am trying to reach a junior position ( Swift UI ) dev!

IamCutePanda
Автор

We use both async await and Combine.
If developer wants publisher, he can wrap the response in a publisher and send it forward.

shreyshrivastava
Автор

In terms of the API Mappers, what would we do if our custom mapper still included functionality from the generic one? Would we duplicate the code over to the specialised mapper or is there a way to combine both mappers?

dineshvijaykumar
Автор

If you were to create a new app (mainly uikit very little swiftui) would you avoid Alomofire? Why?

joshkinney
Автор

1 thing I'm not seeing in this video is how do we implement retry logic after the token is refreshed and avoid multiple refresh requests at the same time

pavlobudzynskyi
Автор

Hey, the app is crashing when we click on "Alternative login for developers" button. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported.'
***
Can you please help? also can the given code directly be used? I have same functions and flow to implement... auth token, refresh token. I have to use Async/await. Please reply

sunshine_
Автор

wow... I have been doing it wrong all my life

Contreras
join shbcf.ru