Apply rounded corners to arc created with UIBezierPath
Set lineCapStyle
to kCGLineCapRound
(On the bezier path) to draw the ends of the lines with a round edge.
You can also set the lineCap
on the shape layer to do the same thing.
The swift equivalent is:
let circlePath = UIBezierPath(…)circlePath.lineCapStyle = .round