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-code

Installs 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.

ReferenceLoad When
Getting StartedSetting up NWConnection for TCP/UDP, choosing between APIs
Connection StatesHandling .waiting, .ready, .failed transitions
iOS 26+ NetworkingUsing NetworkConnection with async/await, TLV framing, Coder protocol
Migration GuideMoving from sockets, CFSocket, SCNetworkReachability, URLSession
TroubleshootingDebugging 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

More from johnrogers/claude-swift-engineering

All 10

Recommended

More Debugging
1aws-samples avatarcode-interpreteraws-samples/sample-strands-agent-with-agentcoreTest and prototype code in a sandboxed environment. Use for debugging, verifying logic, or installing packages.159skills.sh installs
2charleswiltgen avataraxiom-ownership-conventionscharleswiltgen/axiomUse when optimizing large value type performance, working with noncopyable types, reducing ARC traffic, or using InlineArray/Span for zero-copy memory access. C158skills.sh installs
3getsentry avatarsentry-react-native-setupgetsentry/sentry-agent-skillsSetup Sentry in React Native using the wizard CLI. Use when asked to add Sentry to React Native, install @sentry/react-native, or configure error monitoring for150skills.sh installs
4awslabs avatarhyperpod-version-checkerawslabs/agent-pluginsCheck and compare software component versions on SageMaker HyperPod cluster nodes - NVIDIA drivers, CUDA toolkit, cuDNN, NCCL, EFA, AWS OFI NCCL, GDRCopy, MPI, 149skills.sh installs
5win4r avataropenclawwin4r/openclaw-skillComprehensive guide for installing, configuring, operating, and troubleshooting OpenClaw — a self-hosted, multi-channel AI agent gateway. Use when the user asks149skills.sh installs
6itsmostafa avatariamitsmostafa/aws-agent-skillsAWS Identity and Access Management for users, roles, policies, and permissions. Use when creating IAM policies, configuring cross-account access, setting up ser145skills.sh installs