working contact selection

This commit is contained in:
talksik
2021-12-15 18:01:23 -08:00
parent f8f3c6bea3
commit aeef3ff272
2 changed files with 3 additions and 1 deletions
@@ -10,7 +10,9 @@ import Contacts
struct ContactPickerView: View {
@Binding var showPicker: Bool
// updates the parent view for it to do something with the new contact
@Binding var selectedContact: CNContact?
var contacts: [String: [CNContact]] = loadContactsGrouped()
var body: some View {
@@ -28,7 +28,7 @@ struct ContactsView: View {
Button(action: {
self.showPicker = true
}, label: {
Label("Add Contacts", systemImage: "plus.circle")
Label("Add Contacts", systemImage: "plus")
.frame(width: 50, height: 50, alignment: .center)
.labelStyle(.iconOnly)
.font(.largeTitle)