I am trying to add a CAShapeLayer
to UILabel
.
The issue is: the text disappears after doing so:
let shapeLayer = CAShapeLayer()
shapeLayer.path = path.cgPath
shapeLayer.fillColor = UIColor.yellow.cgColor
item.layer.addSublayer(shapeLayer)
Is there any other way to do this?