title: How to make a circle UIView in Swift
body: <p>The following code works on an iPhone but on an iPad the circle is not evenly rounded.</p>
  
  <p>How can I make the view look like a circle on both devices?</p>
  
  <pre><code>let width:CGFloat = UIScreen.main.bounds.width*0.0533      
  label.layer.masksToBounds = true
  label.layer.cornerRadius = width/2
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/rMqWu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rMqWu.png" alt="enter image description here"></a></p>