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. Используйте при получении контактных данных, сохранении новых контактов, упаковке CNContactPickerViewController в SwiftUI, обработке разрешений на контакт или работе с запросами на выборку и сохранение CNContactStore. Источник: dpearson2699/swift-ios-skills.