title: UIImage - Content mode fit and right position - Swift 4
body: <p>How can I move the image to the right?</p>
  
  <pre><code>img.contentMode = .scaleAspectFit
  </code></pre>
  
  <p>Example:</p>
  
  <p><a href="https://i.stack.imgur.com/4g0Yd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4g0Yd.png" alt="enter image description here"></a></p>