title: CornerRadius exactly UIView
body: <p>I want to clip the bounds of my UIView perfectly to interact as a circle, but however I set the corner radius, mask and clip to bounds and it shows correctly, it moves as a square, as you can see in the image: <a href="https://i.stack.imgur.com/sxw6B.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sxw6B.jpg" alt="enter image description here"></a></p>
  
  <p>The code I have used is: </p>
  
  <pre><code>let bubble1 = UIView(frame: CGRectMake(location.x, location.y, 128, 128))
  bubble1.backgroundColor = color2
  bubble1.layer.cornerRadius = bubble1.frame.size.width/2
  bubble1.clipsToBounds = true
  bubble1.layer.masksToBounds = true
  </code></pre>
  
  <p>What is wrong there that does still keeping the edges of the view? </p>
  
  <p>PD: All the views moves dynamically, so when it moves and hit each other, it shows these empty space, acting as an square instead of as an circle </p>