SwiftUIContacts

0.0.1

SwiftUI wrapper of CNContactPickerViewController.
edonv/SwiftUIContacts

What's New

v0.0.1

2023-03-03T18:54:18Z

Full Changelog: 0.0.0...0.0.1

SwiftUIContacts

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

ContactPicker

The 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]
    )
}

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Mar 28 2024 23:41:44 GMT-0900 (Hawaii-Aleutian Daylight Time)