
Contacts Framework
Read, create, update, and pick contacts with Contacts and ContactsUI, including limited-access and save-recovery guidance.
- skills.sh installs
- 3.8K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
What it does
- Covers fetching, creating, updating, deleting contacts, and the contact picker via
CNContactStore,CNSaveRequest, andCNContactPickerViewController - Includes authorization state handling for
.limitedaccess, key descriptor selection, and save-result recovery patterns for Swift 6.3 and iOS 26+ - Enforces fetching only the keys needed, since accessing an unfetched property throws
CNContactPropertyNotFetchedException - Designed for iOS developers adding contact access to SwiftUI apps that must handle permissions and privacy entitlements
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill contacts-framework -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Contacts Framework
Use CNContactStore, CNSaveRequest, and CNContactPickerViewController to
fetch, create, update, or pick contacts in Swift 6.3 / iOS 26+ apps.
Contents
- Setup
- Authorization
- Fetching Contacts
- Key Descriptors
- Creating and Updating Contacts
- Contact Picker
- Observing Changes
- Common Mistakes
- Review Checklist
- References
Setup
Project Configuration
- Add
NSContactsUsageDescriptionto Info.plist explaining why the app accesses contacts. The app crashes if it uses contact data APIs without this key. - No additional capability or entitlement is required for ordinary Contacts access.
- Add
com.apple.developer.contacts.notesonly when reading or writingCNContactNoteKey/CNContact.note; this entitlement requires Apple approval before public distribution.
Imports
@preconcurrency import Contacts // CNContactStore, CNSaveRequest, CNContact
import ContactsUI // CNContactPickerViewController
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Category
- Mobile Apps
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 94- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- App Clips3.8K
- Tipkit3.8K
- Permissionkit3.8K
- Energykit3.8K
- Shareplay Activities3.7K
- Weatherkit3.7K
- Activitykit3.6K
- Cloudkit3.5K
- Photokit3.5K
- Realitykit3.5K
- Mapkit3.5K
- Swiftui Webkit3.5K
- Avkit3.4K
- Spritekit3.4K
- Cryptokit3.4K
- Metrickit3.4K
- Pdfkit3.4K
- Gamekit3.4K
- Swift Architecture3.4K
- Eventkit3.4K
- Musickit3.3K
Similar to Contacts Framework
More Mobile Apps
swiftdatadpearson2699/swift-ios-skills4.4K installsGuide for implementing, reviewing, and improving SwiftData persistence in iOS 26+ apps with Swift 6.3.
core-data-expertavdlee/core-data-agent-skill2.5K installsExpert Core Data guidance that triages crashes, threading, migrations, and CloudKit sync for iOS and macOS.
axiom-swiftdatacharleswiltgen/axiom294 installsSwiftData guidance covering models, queries, relationships, CloudKit sync, and Swift 6 concurrency for iOS 26.
mobile-platform-native-capabilities-integrateforcedotcom/sf-skills4.8K installsMobile-native device capabilities for Salesforce LWCs, gated behind availability checks and typed failure handling.
apollo-iosapollographql/skills1.3K installsStrongly-typed Apollo iOS GraphQL client guide for Swift codegen, client setup, caching, and testing.