r/iOSProgramming • • May 10 '23

Question Best swift network libraries

Are there any good libraries that support async/await and can handle things like form data gracefully? I want to use alamofire but thats not really an option

0 Upvotes

13 comments sorted by

View all comments

1

u/redblack_ Sep 26 '23

Explain "gracefully"? And what is a good library to you?

did you encounter issues like performance, errors, encoding/decoding?

1

u/Thatpersiankid Sep 26 '23

I wanted something that supports async await easily

1

u/redblack_ Sep 26 '23

this looks easy to me (Docs):

func data(

from url: URL,

delegate: (URLSessionTaskDelegate)? = nil

) async throws -> (Data, URLResponse)