I am trying to make a UILabel in Swift a perfect circle. I am currently using the following:
pResult.layer.masksToBounds = true pResult.layer.cornerRadius =
If you you want to make perfect circle then first make sure your label width and height are same.
pResult.layer.cornerRadius = CGRectGetWidth(pResult.frame)/2 pResult.layer.masksToBounds = true
Reference