title: How to make image view round in swift 4
body: <p><a href="https://i.stack.imgur.com/aaiY8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aaiY8.png" alt="enter image description here"></a>Though there is solution of this question is present in internet, but I am unable to do so, I want to round a image.</p>
  
  <p>this code I am using:</p>
  
  <pre><code>extension UIImageView {        
      func makeRounded() {
          let radius = self.frame.width/2.0
          self.layer.cornerRadius = radius
          self.layer.masksToBounds = true
      }
   }
  </code></pre>
  
  <p>then i call this function in viewdidload() like imgvw.makeRounded(). but it is not coming. please help</p>
  
  <p>the previous link is not helping me</p>