UIImagePickerController didFinishPickingImage not calling in Swift 3
<p>I am trying to load an image from photo library using imagePickerView. I, updated my plist to get access to photo library as below for Xcode 8.</p>

<p><a href="https://i.stack.imgur.com/qFPc1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qFPc1.png" alt="enter image description here"></a></p>

<p>After, Updated plist.I can get access to photo library. But,Picker image not loading to my imageView.</p>

<p><strong>My code:</strong></p>

<p><strong>Note:</strong> 
Below code use to work in Xcode 7 not in Xcode 8 ?</p>

<pre><code>   import UIKit

   class ViewController: UIViewController,UIImagePickerControllerDelegate,UINavigationControllerDelegate {

   let imagePicker = UIImagePickerController()
   @IBOutlet weak var imageView: UIImageView!

   override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
        imagePicker.delegate = self
   }

   @IBAction func library(_ sender: UIButton) {

    if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.photoLibrary) {
        imagePicker.delegate = self
        imagePicker.sourceType = UIImagePickerControllerSourceType.photoLibrary;
        imagePicker.allowsEditing = true
        self.present(imagePicker, animated: true, completion: nil)
     }
   }
</code></pre>

<p><strong>Code updated:</strong> from rmaddy answer:</p>

<pre><code>    func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
       if let image = info[UIImagePickerControllerOriginalImage] as? UIImage {
          imageView.image = image
     }
       picker.dismiss(animated: true, completion: nil);
    }
</code></pre>

<p><a href="https://i.stack.imgur.com/qVJg7.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qVJg7.gif" alt="enter image description here"></a></p>

<p>Thanks in Advance....</p>