swift-networking

Implement end-to-end networking workflows for NWConnection and NetworkConnection across iOS versions.

223|21|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-networking-johnrogers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-networking
Source: https://github.com/johnrogers/claude-swift-engineering/tree/main/plugins/swift-engineering/skills/swift-networking
Command: npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-networking-johnrogers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Implementing and maintaining robust networking flows across NWConnection (iOS 12-25) and the newer NetworkConnection (iOS 26+) is error-prone and complex. This guide provides a practical, end-to-end framework for building reliable, secure connections, handling states, retries, and migrations.

Core Features & Use Cases

  • Unified workflows for NWConnection and NetworkConnection across iOS versions.
  • State management & error handling guidance for reliable connections under varying network conditions.
  • Migration patterns from legacy BSD sockets / URLSession streams to modern APIs with minimal disruption.

Quick Start

Install the swift-networking skill and load its networking guidance to start implementing reliable connections.

Frequently Asked Questions about swift-networking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate legacy BSD sockets to Network.framework in iOS?

Migrate legacy BSD sockets to Network.framework by adopting provided end-to-end workflows for NWConnection and NetworkConnection, applying state management, error handling, and safe defaults to ensure minimal disruption during the migration process.

Does Network.framework support both TCP and UDP connection workflows across iOS versions?

Network.framework supports both TCP and UDP connection workflows across iOS versions, providing unified patterns for NWConnection on iOS 12-25 and NetworkConnection on iOS 26+.

What's the best way to handle NWConnection state management and network errors?

Handle NWConnection state management and network errors by applying the provided framework's reliable connection patterns, ensuring proper state tracking, retries, and safe defaults under varying network conditions.

Can I implement TLS and message framing using Network.framework?

Network.framework allows you to implement TLS and message framing by utilizing its end-to-end networking workflows for NWConnection, ensuring secure and structured data transmission across supported iOS versions.

How do I transition from NWConnection to NetworkConnection for iOS 26+ scenarios?

Transition from NWConnection to NetworkConnection for iOS 26+ scenarios by following the unified networking workflows that support both APIs, allowing you to handle TCP, UDP, and TLS with modern state management.

Why do my Network.framework connections drop under varying network conditions?

Network.framework connections drop under varying conditions if state management and error handling are improperly configured, which this framework addresses by providing reliable connection patterns, retries, and safe defaults.