SwiftUI
wrapper of ContactsUI's CNContactPickerViewController. Eventually, I'll add the rest of the framework.
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:
@Binding
of type CNContact?
in the init
@Binding
of type [CNContact]
in the init
@Binding
of type CNContactProperty?
in the init
@Binding
of type [CNContactProperty]
in the init
.sheet(isPresented: $showSheet) {
ContactPicker(selection: $selectedProperty,
displayedPropertyKeys: [.phoneNumbersKey]
)
}
link |
Stars: 1 |
Last commit: 3 weeks ago |
Full Changelog: https://github.com/edonv/SwiftUIContacts/compare/0.0.0...0.0.1
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics