
Swift Networking
If you're working with Network.framework instead of URLSession, this covers the essentials: setting up NWConnection for TCP/UDP, handling connection state transitions, and avoiding the usual mistakes like blocking the main thread or ignoring network switches between WiFi and cellular. It includes migration guidance from BSD sockets and CFSocket, plus specific coverage of iOS 26's new NetworkConnection API with structured concurrency. The troubleshooting reference is helpful when you're staring at connection timeouts or TLS failures. Most useful for peer-to-peer apps, gaming, or custom protocols where you need lower-level control than HTTP gives you.
- skills.sh installs
- 162
- GitHub stars
- 233
- last updated
- Aug 21, 2026
Install
$ npx -y skills add johnrogers/claude-swift-engineering --skill swift-networking --agent claude-codeInstalls into .claude/skills of the current project.
Files
Swift Networking
Network.framework is Apple's modern networking API for TCP/UDP connections, replacing BSD sockets with smart connection establishment, user-space networking, and seamless mobility handling.
Reference Loading Guide
ALWAYS load reference files if there is even a small chance the content may be required. It's better to have the context than to miss a pattern or make a mistake.
| Reference | Load When |
|---|---|
| Getting Started | Setting up NWConnection for TCP/UDP, choosing between APIs |
| Connection States | Handling .waiting, .ready, .failed transitions |
| iOS 26+ Networking | Using NetworkConnection with async/await, TLV framing, Coder protocol |
| Migration Guide | Moving from sockets, CFSocket, SCNetworkReachability, URLSession |
| Troubleshooting | Debugging timeouts, TLS failures, connection issues |
Core Workflow
Sponsors
Details
- Repository
- github.com/johnrogers/claude-swift-engineering
- Categories
- Debugging, Mobile Development
- First seen
- Jun 3, 2026