I would like to programmatically create a contact in my app and save it into actual contacts using apples Contacts framework. I can create one with a first name, last name, and even work with dates.
I start with
let contact = CNMutableContact()
and end with
let store = CNContactStore()
let saveRequest = CNSaveRequest()
saveRequest.add(contact, toContainerWithIdentifier: nil)
try? store.execute(saveRequest)
but I can't figure out how to do it with a home address. Any help would be appreciated, thanks. Would love to do it via location coordinates or even a string of a city, state, street, etc.
Thank you.