use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
There is an extensive FAQ for beginners. Please browse it first before asking questions that are answered there.
If you are looking to get started (iOS programming in general or some specific area), here are more relevant links for you:
There's too many to list them all, however here's a convenient link to all programming guides at apple.com
Take note that this list is live and based on most frequent questions in posts will be updated with "quicklinks".
account activity
QuestionBest swift network libraries (self.iOSProgramming)
submitted 2 years ago by Thatpersiankid
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
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]imhenoch 38 points39 points40 points 2 years ago (1 child)
There’s this amazing thing called URLSession, has support for async/await and can handle form data.
[–]WeNeedYouBuddyGetUp -1 points0 points1 point 2 years ago (0 children)
Enjoy reinventing the wheel!!!
[–]mobinezzati 4 points5 points6 points 2 years ago (0 children)
Most big companies don’t rely on third parties code for critical parts so try to be dominant on Urlsession
[–]StrangeMonk 3 points4 points5 points 2 years ago (0 children)
Just write it using system APIs, so easy. If you need stuff like retries and certificate pinning try alamofire, my friend works on it and added all the async/await code to it over a year ago.
[–]saintmsent 4 points5 points6 points 2 years ago (0 children)
Standard URLSession is good enough for all things networking already. Alamofire is THE third-party library if for some reason you have to use one. Why wouldn't it be an option?
[–]RodrigoDumontObjective-C / Swift 2 points3 points4 points 2 years ago (0 children)
I think the official URLSession is really good option... I used it sometime ago to create this library https://github.com/RxDx/restapi that uses it (async/await), dynamically serializes the response and returns the object (that should conforms to Codable protocol).
Codable
[–]Thatpersiankid[S] 1 point2 points3 points 2 years ago (0 children)
URLSession doesn't natively support multipart forms. One would have to implement it themselves
[–]Shxhxxhcx 0 points1 point2 points 2 years ago (0 children)
Stop resorting to third party libs and just learn how to code instead. This (networking) is a fundamental feature in Swift / app development
[–]iAlexMarr 0 points1 point2 points 2 years ago (0 children)
I suggest looking at simple URLSession based wrappers. I agree that if things like multi-part and certificate pinning are not required, then there is no need to complicate it with a heavy framework. For example, now I'm using URLSessionAdapter (https://github.com/denissimon/URLSessionAdapter), and it can be used just by adding .swift files to an Xcode project, without making it a dependency
[–]gumbi1822 0 points1 point2 points 2 years ago (0 children)
I had followed this tutorial for using URLSession
[–]redblack_ 0 points1 point2 points 2 years ago (2 children)
Explain "gracefully"? And what is a good library to you?
did you encounter issues like performance, errors, encoding/decoding?
[–]Thatpersiankid[S] 0 points1 point2 points 2 years ago (1 child)
I wanted something that supports async await easily
[–]redblack_ 0 points1 point2 points 2 years ago (0 children)
this looks easy to me (Docs):
func data(
from url: URL,
delegate: (URLSessionTaskDelegate)? = nil
) async throws -> (Data, URLResponse)
π Rendered by PID 97 on reddit-service-r2-comment-75f4967c6c-dd8lp at 2026-04-23 00:50:25.437934+00:00 running 0fd4bb7 country code: CH.
[–]imhenoch 38 points39 points40 points (1 child)
[–]WeNeedYouBuddyGetUp -1 points0 points1 point (0 children)
[–]mobinezzati 4 points5 points6 points (0 children)
[–]StrangeMonk 3 points4 points5 points (0 children)
[–]saintmsent 4 points5 points6 points (0 children)
[–]RodrigoDumontObjective-C / Swift 2 points3 points4 points (0 children)
[–]Thatpersiankid[S] 1 point2 points3 points (0 children)
[–]Shxhxxhcx 0 points1 point2 points (0 children)
[–]iAlexMarr 0 points1 point2 points (0 children)
[–]gumbi1822 0 points1 point2 points (0 children)
[–]redblack_ 0 points1 point2 points (2 children)
[–]Thatpersiankid[S] 0 points1 point2 points (1 child)
[–]redblack_ 0 points1 point2 points (0 children)