9

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?

Igor
  • 12,165
  • 4
  • 57
  • 73

1 Answers1

25

Just found a way:

let mutableContact = contact.mutableCopy() as! CNMutableContact
Igor
  • 12,165
  • 4
  • 57
  • 73