Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

Get Contact Identifier #156

Open pablopantaleon opened 7 years ago

pablopantaleon commented 7 years ago

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.

belkevich commented 7 years ago

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 commented 7 years ago

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