#URLRequest
I gave URLSession "url" instead of "urlRequest"

I checked EVERYTHING AROUND IT but somehow didn't think to check that one line. so this whole time, I was preparing a URLRequest with the Authorization field and all that and just not using it.

2. fucking. months.

I am hopeless
November 28, 2024 at 12:02 PM
AsyncImage got some useful improvements in iOS 27. We can now pass a URLRequest for per-image headers, caching, and timeout control, and provide a custom URLSession for image loading across a SwiftUI view hierarchy.

You can learn more in my new post: nilcoalescing.com/blog/AsyncIm...
AsyncImage improvements in iOS 27
iOS 27 gives AsyncImage more control over remote image loading with URLRequest support for custom headers, cache policies, and timeouts, plus the ability to provide a custom URLSession across a SwiftU...
nilcoalescing.com
June 22, 2026 at 6:29 AM
iOS 27 gives AsyncImage more control over remote image loading with URLRequest support for custom headers, cache policies, and timeouts, plus the ability to provide a custom URLSession across a SwiftUI view hierarchy: nilcoalescing.com/blog/AsyncIm...
#iOSDev #SwiftUI
AsyncImage improvements in iOS 27
iOS 27 gives AsyncImage more control over remote image loading with URLRequest support for custom headers, cache policies, and timeouts, plus the ability to provide a custom URLSession across a SwiftU...
nilcoalescing.com
September 17, 2026 at 11:18 PM
iOS 27 gives AsyncImage more control over remote image loading with URLRequest support for custom headers, cache policies, and timeouts, plus the ability to provide a custom URLSession across a SwiftUI view hierarchy: nilcoalescing.com/blog/AsyncIm...
#iOSDev #SwiftUI
AsyncImage improvements in iOS 27
iOS 27 gives AsyncImage more control over remote image loading with URLRequest support for custom headers, cache policies, and timeouts, plus the ability to provide a custom URLSession across a SwiftU...
nilcoalescing.com
August 16, 2026 at 11:45 PM
iOS 27 adds an AsyncImage cache and URLRequest initializer. Explore cache policies including HTTP rules, cache-only, reload, and cache-first. youtu.be/ni6VltOadUQ
AsyncImage Caching in iOS 27: Everything You Need to Know
YouTube video by Stewart Lynch
youtu.be
September 13, 2026 at 1:33 PM
Skrattade
April 24, 2025 at 9:57 AM
Part 5 of my Swift Network Manager series is here 🚀
We go beyond GET requests and build real CRUD operations with POST, PUT, and DELETE using URLRequest, JSON payloads, headers, and auth tokens.
Build apps that actually talk to real APIs.
youtu.be/XqNyj8G7Fqk
Network Manager: Part 5 - POST, PUT, DELETE with URLRequest
YouTube video by Stewart Lynch
youtu.be
May 3, 2026 at 1:33 PM
Back by popular demand.
Part 4 of my Swift Network Manager series is now live. We move from basic URL fetching to URLRequest, HTTP methods, and headers. #Swift #SwiftUI #iOSdev #NetworkManager
youtu.be/pzHctMLhovI
SwiftUI Networking Part 4 URLRequest, Headers & Auth Tokens
YouTube video by Stewart Lynch
youtu.be
April 26, 2026 at 1:31 PM
Work, work... 💼

I have developed basic modifiers to configure URLRequest in the future, along with basic request methods. 🛠️

Now, I need to determine how to build a configuration within the Request tree. 🌳

#BuildInPublic #SwiftPackage #SPM
September 24, 2025 at 12:20 PM
I nailed it! 💪

Now, #SwiftyNetworking has a proper #Request builder pattern. I can freely build any objects that conform to Request and place them into a larger structure. 🧱

It's time to start the weekend. Next step: prepare a generic #URLRequest builder. 🚀

#BuildInPublic
September 26, 2025 at 9:03 PM
Combining multiple APIs and #Gemini model with #SwiftUI. These days, I'm playing with lots of APIs just to test out URLRequest and decode json to generate contents dynamically.

Slowly realizing the power of LLM with custom prompt.
January 10, 2025 at 5:00 AM
Se um biólogo me visse diria que eu estou em estado de sofrimento aqui com um cache de uma URL que o reloadIgnoringLocalCacheData do cache policy do URLRequest não quer ignorar e eu fico aqui sempre com as mesmas imagens pois tá preso eternamente no cache
February 19, 2025 at 2:54 PM
I just have to map out the equivalent relevant Fetch API stuff to URLRequest-related declarations. These declarations are seldom used, too, so I may actually get rid of FetchLab altogether?

I don’t know. I’ll just continue with my plan and after it’s released, we’ll see what fate lies for it.
September 5, 2025 at 12:10 AM
It was a long day, but the results are promising! 😊

I am not sure if this is the final solution, but it is good enough to move further with the #SwiftyNetworking refactor.💡

The Configuration will serve as a source to build URLRequest. Now, I want to resolve the final request.
September 26, 2025 at 2:58 PM
It appears I forgot to add the URLRequest extension. If you were experiencing any build failures, this was the reason why.
July 12, 2026 at 1:39 AM
Wait... nevermind: it only builds successfully in Swift 6.0 (weirdly enough... 🤔).

The reason it falls in Swift 5.10 is because... there's no "data" member in URLSession?
July 29, 2024 at 5:52 PM
Eu não testei no iOS, mas caso não tenha resolvido, em último caso, tem um hack que talvez funcione, adicionar um query param, timestamp ou algo assim, e enviar o `Date().timeIntervalSince1970` nesse param, o URLRequest provavelmente vai entender como uma nova URL e ignorar o cache
February 19, 2025 at 6:38 PM
It's getting serious. 😬

Building a #Request involves several stages. First, I create the #URL along with the query items. Then, I construct a #URLRequest by adding headers and a body.

Finally, I return the URLRequest, a #Foundation type. ⚒️

Next goal: send it! 🚀

#Swift #iOS
September 30, 2025 at 2:58 PM