The trick is to set maskToBounds to true. Then your modifications to cornerRadius will be visible.
label.layer.masksToBounds = true
label.layer.cornerRadius = 5
The trick is to set maskToBounds to true. Then your modifications to cornerRadius will be visible.
label.layer.masksToBounds = true
label.layer.cornerRadius = 5