Swift iOS Development
URLComponents Leaves the + in Your Query Alone. Your Server Reads It as a Space.
URLComponents.queryItems percent-encodes spaces and ampersands but leaves + untouched, and most servers decode + as a space. Here's why mario+test@gmail.com arrives as 'mario test@gmail.com', and the one-line fix.
7 min read
URLSession Networking
Your Upload Doesn't Stop When Your App Gets Killed. It's Not Supposed To.
URLSession background sessions keep uploads and downloads running after iOS terminates your app — but only if you set them up before the crash, not after. Here's the delegate dance nobody reads the docs closely enough to get right.
5 min read
Swift Networking
A Custom Networking Layer in 100 Lines of Swift — No Alamofire
Day 22 of the 30-day iOS series. URLSession, async/await, a generic Endpoint, and one typed error enum — the entire networking layer is 85 real lines, tested with a URLProtocol stub, and wired into a real BrewLog feature with a real local server.
11 min read