·ios-networking
</>

ios-networking

使用带有异步/等待、结构化并发和现代 Swift 模式的 URLSession 在 iOS/macOS 应用程序中构建、审查或改进网络代码。在使用 REST API、下载文件、上传数据、WebSocket 连接、分页、重试逻辑、请求中间件、缓存、后台传输或网络可达性监控时使用。触发涉及 HTTP 请求、API 客户端、网络错误处理或 Swift 应用程序中的数据获取的任何任务。

79安装·26热度·@dpearson2699

安装

$npx skills add https://github.com/dpearson2699/swift-ios-skills --skill ios-networking

如何安装 ios-networking

通过命令行快速安装 ios-networking AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill ios-networking
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dpearson2699/swift-ios-skills。

SKILL.md

查看原文

Modern networking patterns for iOS 26+ using URLSession with async/await and structured concurrency. All examples target Swift 6.2. No third-party dependencies required -- URLSession covers the vast majority of networking needs.

URLSession gained native async/await overloads in iOS 15. These are the only networking APIs to use in new code. Never use completion-handler variants in new projects.

Always validate the HTTP status code before decoding. URLSession does not throw for 4xx/5xx responses -- it only throws for transport-level failures.

使用带有异步/等待、结构化并发和现代 Swift 模式的 URLSession 在 iOS/macOS 应用程序中构建、审查或改进网络代码。在使用 REST API、下载文件、上传数据、WebSocket 连接、分页、重试逻辑、请求中间件、缓存、后台传输或网络可达性监控时使用。触发涉及 HTTP 请求、API 客户端、网络错误处理或 Swift 应用程序中的数据获取的任何任务。 来源:dpearson2699/swift-ios-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill ios-networking
分类
</>开发工具
认证
收录时间
2026-03-08
更新时间
2026-03-10

Browse more skills from dpearson2699/swift-ios-skills

快速解答

什么是 ios-networking?

使用带有异步/等待、结构化并发和现代 Swift 模式的 URLSession 在 iOS/macOS 应用程序中构建、审查或改进网络代码。在使用 REST API、下载文件、上传数据、WebSocket 连接、分页、重试逻辑、请求中间件、缓存、后台传输或网络可达性监控时使用。触发涉及 HTTP 请求、API 客户端、网络错误处理或 Swift 应用程序中的数据获取的任何任务。 来源:dpearson2699/swift-ios-skills。

如何安装 ios-networking?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill ios-networking 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dpearson2699/swift-ios-skills