A solid reference for URLSession patterns in modern Swift. Covers the async/await APIs introduced in iOS 15, structured concurrency, and protocol-based client architecture with middleware support. The guide includes practical patterns for token refresh, pagination, streaming with AsyncBytes, and error mapping from URLError cases. It's opinionated in the right ways: status code validation (since URLSession doesn't throw on 4xx/5xx), always using download for large files to avoid memory issues, and avoiding completion handlers entirely in new code. The structured error types and endpoint modeling are clean. Use this when you're building or reviewing API clients and want to stick with first-party frameworks instead of reaching for Alamofire.
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill ios-networking