Get image from Contact Swift
<p><strong>Desired Behavior</strong></p>

<p>I am wondering how to best do the following in Swift</p>

<blockquote>
  <ol>
  <li>Display a contact picker window</li>
  <li>Allow a user to select a contact</li>
  <li>Fetch an image from that contact.</li>
  </ol>
</blockquote>

<p><strong>Research</strong></p>

<p>In researching this question, I have determined that, beginning in iOS 9, Apple introduced a new framework, <code>Contacts</code>, for accessing contacts. I also learned that <a href="https://developer.apple.com/reference/contacts" rel="noreferrer">Their documentation</a> describes using a system called <code>Predicates</code> for fetching information from a contact. However, I am unsure of how to implement this. </p>

<p><strong>Implementation</strong></p>

<p><a href="https://www.shinobicontrols.com/blog/ios9-day-by-day-day7-contacts-framework" rel="noreferrer">Based primarly on this tutorial</a>, I have figured out how to present the Contacts Picker window.</p>

<pre><code>import UIKit
import Contacts
import ContactsUI

class ViewController: UIViewController,  CNContactPickerDelegate {


override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
}
@IBAction func contactsPressed(_ sender: AnyObject) {
    let contactPicker = CNContactPickerViewController()
    contactPicker.delegate = self;

    self.present(contactPicker, animated: true, completion: nil)
}

func contactPicker(picker: CNContactPickerViewController, didSelectContactProperty contactProperty: CNContactProperty) {
   //Here is where I am stuck - how do I get the image from the contact?
}

}
</code></pre>

<p>Thanks in advance!!</p>