{"id":15055383,"url":"https://github.com/edonv/swiftuicontacts","last_synced_at":"2025-04-10T03:40:37.994Z","repository":{"id":102987808,"uuid":"608376898","full_name":"edonv/SwiftUIContacts","owner":"edonv","description":"SwiftUI wrapper of CNContactPickerViewController.","archived":false,"fork":false,"pushed_at":"2024-03-22T18:30:41.000Z","size":35,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T04:51:39.544Z","etag":null,"topics":["cncontactpickerviewcontroller","contactsui","ios","macos","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edonv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"edonv"}},"created_at":"2023-03-01T22:21:05.000Z","updated_at":"2025-01-06T19:55:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6a12e16-903e-475f-954f-4885604ec772","html_url":"https://github.com/edonv/SwiftUIContacts","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.1428571428571429,"last_synced_commit":"1c03c40bcb3dcb62ab1b8a6d3d3c7b678d8b8cb1"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonv%2FSwiftUIContacts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonv%2FSwiftUIContacts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonv%2FSwiftUIContacts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edonv%2FSwiftUIContacts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edonv","download_url":"https://codeload.github.com/edonv/SwiftUIContacts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154799,"owners_count":21056541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cncontactpickerviewcontroller","contactsui","ios","macos","swiftui"],"created_at":"2024-09-24T21:41:42.300Z","updated_at":"2025-04-10T03:40:37.970Z","avatar_url":"https://github.com/edonv.png","language":"Swift","funding_links":["https://github.com/sponsors/edonv"],"categories":[],"sub_categories":[],"readme":"# SwiftUIContacts\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fedonv%2FSwiftUIContacts%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/edonv/SwiftUIContacts)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fedonv%2FSwiftUIContacts%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/edonv/SwiftUIContacts)\n\n`SwiftUI` wrapper of [`ContactsUI`](https://developer.apple.com/documentation/contactsui)'s  [`CNContactPickerViewController`](https://developer.apple.com/documentation/contactsui/cncontactpickerviewcontroller). Eventually, I'll add the rest of the framework. \n\n## To-Do's\n- [ ] Port over macOS-exclusive ViewControllers (`CNContactViewController`'s usage on macOS, and `CNContactPicker`).\n\n## Documentation\n\nDocumentation for `SwiftUIContacts` is hosted on [Swift Package Index](https://swiftpackageindex.com/edonv/SwiftUIContacts/documentation/swiftuicontacts).\n\n## ContactPicker\n\n`ContactPicker` supports four different selection modes and the mode is decided by which `init` you use:\n- A single contact \n  - Use a `@Binding` of type `CNContact?` in the `init`\n- Multiple contacts \n  - Use a `@Binding` of type `[CNContact]` in the `init`\n- A single property of a contact \n  - Use a `@Binding` of type `CNContactProperty?` in the `init`\n- A single property from multiple contacts \n  - Use a `@Binding` of type `[CNContactProperty]` in the `init`\n\n```swift\n.sheet(isPresented: $showSheet) {\n    ContactPicker(selection: $selectedProperty,\n                  displayedPropertyKeys: [.phoneNumbersKey]\n    )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedonv%2Fswiftuicontacts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedonv%2Fswiftuicontacts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedonv%2Fswiftuicontacts/lists"}