I'm fairly new to Swift, so I'm not sure if I'm just not researching the correct terms, but I'm struggling with the CNContactPickerViewController().
Currently, I have the controller creating a new screen (I understand why it does this). When I select contacts and hit 'Done', I am able to pull those specific contacts from the list (first name, last name, and phone number) successfully. I'm using the following code to show the controller:
let cnPicker = CNContactPickerViewController()
cnPicker.delegate = self
self.present(cnPicker, animated: true, completion: nil)
I have a container view set up in XCode under the following variable name:
@IBOutlet weak var contactsSubView: UIView!
I would like to put the contacts controller inside the container view so that it appears within the existing controller. This container view has the following constraints within the view:
height: 376
width: 343
Contacts Sub View.top = label + 23
Contacts Sub View.centerX = Safe Area.centerX