title: Adding padding and border to an UIImageView
body: <p>How can I add padding between an <code>UIImageView</code> and its border? </p>
  
  <pre><code>Img.layer.cornerRadius = Img.bounds.width / 2
  Img.layer.borderWidth = 2
  Img.layer.borderColor = UIColor.blue.cgColor
  Img.clipsToBounds = true
  </code></pre>
  
  <p>Like this:</p>
  
  <p><a href="https://i.stack.imgur.com/80XXf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/80XXf.png" alt="desired result"></a></p>