·contacts-framework
</>

contacts-framework

使用 Contacts 和 ContactsUI 框架读取、创建、更新和选择联系人。在获取联系人数据、保存新联系人、在 SwiftUI 中包装 CNContactPickerViewController、处理联系人权限或处理 CNContactStore 获取和保存请求时使用。

40安装·16热度·@dpearson2699

安装

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

如何安装 contacts-framework

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

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

来源:dpearson2699/swift-ios-skills。

SKILL.md

查看原文

Fetch, create, update, and pick contacts from the user's Contacts database using CNContactStore, CNSaveRequest, and CNContactPickerViewController. Targets Swift 6.2 / iOS 26+.

Request access before fetching or saving contacts. The picker (CNContactPickerViewController) does not require authorization -- the system grants access only to the contacts the user selects.

| .notDetermined | User has not been prompted yet | | .authorized | Full read/write access granted | | .denied | User denied access; direct to Settings | | .restricted | Parental controls or MDM restrict access | | .limited | iOS 18+: user granted access to selected contacts only |

使用 Contacts 和 ContactsUI 框架读取、创建、更新和选择联系人。在获取联系人数据、保存新联系人、在 SwiftUI 中包装 CNContactPickerViewController、处理联系人权限或处理 CNContactStore 获取和保存请求时使用。 来源:dpearson2699/swift-ios-skills。

可引用信息

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

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

Browse more skills from dpearson2699/swift-ios-skills

快速解答

什么是 contacts-framework?

使用 Contacts 和 ContactsUI 框架读取、创建、更新和选择联系人。在获取联系人数据、保存新联系人、在 SwiftUI 中包装 CNContactPickerViewController、处理联系人权限或处理 CNContactStore 获取和保存请求时使用。 来源:dpearson2699/swift-ios-skills。

如何安装 contacts-framework?

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

这个 Skill 的源码在哪?

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