title: how to get path of picture taken by camera ios swift
body: <p>I was using the imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo delegate method for getting the url of the image which user chose on photo gallery. But when I try to get URL for image taken by camera its return nill.
  Here is my code.</p>
  
  <pre><code>func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
          if (imagePicker.sourceType == UIImagePickerControllerSourceType.camera) {
              let data = UIImagePNGRepresentation(pickedImage)
              UIImageWriteToSavedPhotosAlbum(pickedImage, nil, nil, nil)
  
              if let image = info[UIImagePickerControllerOriginalImage] as? UIImage {
                  let imageURL =  info[UIImagePickerControllerReferenceURL] as? NSURL
                  print(imageURL)
              }
          }
  </code></pre>