title: iOS Swift: How to properly scale down an image?
body: <p>I'm using AlamofireImage to download and set my UIImage:</p>
  
  <pre><code>backdrop.af_setImageWithURL(downloadURL)
  </code></pre>
  
  <p>The image is substantially larger than what I will be displaying and so I have an issue with aliasing. How can I resize this image properly?</p>
  
  <p>Results:</p>
  
  <p><a href="https://i.stack.imgur.com/c7YWz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c7YWz.jpg" alt="enter image description here"></a></p>