title: Resize an UIImageView to fit in screen
body: <p>There is a <code>UIImageView</code> passed as an property through a segue from another view controller where the user has scribbled on an image. I couldn't fit / scale  the image to fit in a <code>UIView</code> in the receiving view controller. No matter what I try it goes over the screen.</p>
  
  <p>Here are some I tried with zero success in <code>viewDidLoad()</code></p>
  
  <pre><code>incomingImgView?.frame = CGRect(x: 0, y: 0, width: view.bounds.width  , height:  view.bounds.height)
  // incomingImgView?.frame = CGRect(x: 0, y: 0, width: 100  , height: 100)
  
  incomingImgView?.contentMode = .scaleAspectFit
  
  incomingImgView?.clipsToBounds = true
  
  //incomingImgView?.frame = view.bounds
  viewContainer.addSubview(incomingImgView!)
  
  
  // incomingImgView?.image?.scaleImage(toSize: CGSize(width: 100, height: 100))
  // incomingImgView?.layoutIfNeeded()
  
  view.layoutIfNeeded()
  </code></pre>