title: UIImage is not showing after selecting image from gallery or camera
body: <p>I am trying to select image from camera or gallery and showing the selected image to the screen in my image view. But it's not showing.</p>
  
  <pre><code>  func imagePickerController(_ picker: UIImagePickerController,
                                 didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
  
          guard let selectedImage = info[.originalImage] as? UIImage else {
              fatalError("Expected a dictionary containing an image, but was provided the following: \(info)")
          }
  
          imageview.image = selectedImage
  
          dismiss(animated: true, completion: nil)
      }
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p><a href="https://i.stack.imgur.com/la8Hn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/la8Hn.png" alt="enter image description here"></a></p>
  
  <p>In my case the breakpoint function is not at all invoking</p>