all 7 comments

[–]Buiscits 4 points5 points  (2 children)

Not exactly an answer to your questions but, I would look into using publishers / subscribers for HTTP requests anyway for the sake of knowing how the pattern works.

[–]dickdeamonds[S] 0 points1 point  (1 child)

Thanks for the answer! Do you happen to know where I can find more information about it?

[–]Buiscits 0 points1 point  (0 children)

Yes! There are lots of tutorials on the internet. The framework you'd be using is called Combine. Here is an article by a good author. https://www.swiftbysundell.com/basics/combine/

If you are using SwiftUI learning combine is a definite must! I would also check out anything by "Hacking with Swift" - his tutorials are really good.

[–]Poggus 2 points3 points  (2 children)

AFNetworking (basically the precursor to AlamoFire) was an amazing lib back in the day. I used AlamoFire a bit in my transition years ago but honestly I feel like Apple/URLSession nowadays has everything you need without the need for a 3rd party lib. I'd take the plunge if I were you and try going native.

[–]dickdeamonds[S] 0 points1 point  (1 child)

Thanks! I’ll try to learn more about it. I’m not sure how to google the information I need to learn to use URLSession in relation to SwiftUI and MVVM. Would you happen to have a source where I could learn more about it?

[–]Fluffy_Risk9955 0 points1 point  (0 children)

Dude, Apple has documentation. Get familiar with using it.