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 =
Based on the previous answer, but this one in Swift 4.2 :
label.layer.cornerRadius = label.frame.width/2 label.layer.masksToBounds = true