APAddressBook icon indicating copy to clipboard operation
APAddressBook copied to clipboard

Get Contact Identifier

Open pablopantaleon opened this issue 7 years ago • 2 comments

I know that this is not supported: https://github.com/Alterplay/APAddressBook/issues/107. I'm trying to update a contact using:

let store = CNContactStore() let value: CNContact = try store.unifiedContact(withIdentifier: ....

and the only possible value could be contact?.recordID, but it's not the identifier. So how i can get the contact identifier using the library.

pablopantaleon avatar Mar 14 '17 07:03 pablopantaleon

I didn't find any property in Contact.framework matching recordID. So, I think it's impossible to match records from Contacts.framework and records from deprecated AddressBook.framework

belkevich avatar Mar 14 '17 14:03 belkevich

Please, let me know if you find some solution))

belkevich avatar Mar 14 '17 14:03 belkevich