title: How to make an UIView into circle shape in swift 4.2?
body: <p>The width(40) and height(40) of the UIView are equal.</p>
  
  <p>I have tried these but they didn't work for me:</p>
  
  <pre><code>countView?.clipsToBounds = true
  self.countView?.layer.cornerRadius = min((countView?.frame.size.width)!, (countView?.frame.size.height)!)/2
  </code></pre>
  
  <p>and also</p>
  
  <pre><code>self.countView.layer.cornerRadius = (countView.frame.size.width)/2
  </code></pre>
  
  <p>Thanks</p>