How to get a callBack when user successfully saves or dismiss the CNContactViewController
func addContact(contactDetails: ContactDetails) {
    let store = CNContactStore()
    let contact = CNMutableContact()
    let comp = contactDetails.name.components(separatedBy: " ")
    contact.givenName = comp.first ?? ""
    contact.familyName = comp.count > 1 ? comp[1] : ""
    let homePhone = CNLabeledValue(label: CNLabelHome, value: CNPhoneNumber(stringValue :contactDetails.phone ))
    contact.phoneNumbers = [homePhone]
    let workEmail = CNLabeledValue(label:CNLabelWork, value:contactDetails.email as NSString)
    contact.emailAddresses = [workEmail]
    let controller = CNContactViewController(forUnknownContact : contact)// .viewControllerForUnknownContact(contact)
    controller.contactStore = store
    controller.delegate = self
    //self.navigationController?.setNavigationBarHidden(false, animated: true)
    self.navigationController?.pushViewController(controller, animated: true)
}
 
    