I'm trying to add a bottom border like below programmatically. I believe I would need to use Beizer path, but not sure how should I go about the path points? Result image
private func setupBorder() {
let shapeLayer = CAShapeLayer()
let path = UIBezierPath(rect: frame)
shapeLayer.path = path.cgPath
layer.insertSublayer(shapeLayer, at: 0)
}