create UIBezierPath from swift String
following code
let helloWorldString = "hello world!"
let path = helloWorldString.bezierPath(withFont: UIFont.systemFont(ofSize: 64))
let shapeLayer = CAShapeLayer(layer: holderView.layer)
shapeLayer.path = path.cgPath
shapeLayer.fillColor = fillColor
shapeLayer.strokeColor = lineColor
shapeLayer.lineWidth = 2
holderView.layer.addSublayer(shapeLayer)
results this