I need to get contact, change it, and store back.
CNContactStore().unifiedContacts
gives me CNContact
instance, but CNSaveRequest().update
requires CNMutableContact
.
How to convert CNContact to CNMutableContact?
Just found a way:
let mutableContact = contact.mutableCopy() as! CNMutableContact
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With