Swiftpack.co - edonv/SwiftUIContacts as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by edonv.
edonv/SwiftUIContacts 0.0.6
SwiftUI wrapper of CNContactPickerViewController.
⭐️ 4
🕓 4 weeks ago
iOS macOS macCatalyst
.package(url: "https://github.com/edonv/SwiftUIContacts.git", from: "0.0.6")


SwiftUI wrapper of ContactsUI's CNContactPickerViewController. Eventually, I'll add the rest of the framework.


  • ☐ Port over macOS-exclusive ViewControllers (CNContactViewController's usage on macOS, and CNContactPicker).


Documentation for SwiftUIContacts is hosted on Swift Package Index.


ContactPicker supports four different selection modes and the mode is decided by which init you use:

  • A single contact
    • Use a @Binding of type CNContact? in the init
  • Multiple contacts
    • Use a @Binding of type [CNContact] in the init
  • A single property of a contact
    • Use a @Binding of type CNContactProperty? in the init
  • A single property from multiple contacts
    • Use a @Binding of type [CNContactProperty] in the init
.sheet(isPresented: $showSheet) {
    ContactPicker(selection: $selectedProperty,
                  displayedPropertyKeys: [.phoneNumbersKey]


Stars: 4
Last commit: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics