Rounding the edges of a stroke in bezier path circle in swift
Assuming you are using a CAShapeLayer
to draw this, just set the lineCap
, e.g.:
layer.lineCap = .round
For drawRect based solutions use lineCapStyle
let path = UIBezierPath(...)
path.lineCapStyle = .round