title: UIImageView with ScaleAspectFit mode makes image pixelated
body: <p>I'd like to show an image in a UIImageView. The image is bigger than the UIImageView, so I set the contentMode like this:</p>
  
  <pre><code>previewImageView.contentMode = .scaleAspectFill
  </code></pre>
  
  <p>The problem now is that it looks pixelated like ...</p>
  
  <p><a href="https://i.stack.imgur.com/7FugY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7FugY.jpg" alt="enter image description here"></a></p>
  
  <p>but should look like ...</p>
  
  <p><a href="https://i.stack.imgur.com/99ccb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/99ccb.jpg" alt="enter image description here"></a></p>
  
  <p>I remember that back in the days with Swift 2.3 and Xcode 7.x on iOS 9.x it looked "correct".</p>
  
  <p>Any ideas?</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>If I set the heightConstraint.constant of the UIImageView to 49.5 in viewDidLoad() the image is scaled correct without pixelation.</p>
  
  <p>I should also mention that the UIImageView was created in the InterfaceBuilder. Is there any known bug?</p>