I want to be able to give these ends a corner radius of 5 instead of sharp square ends.
lineCap only supports .round, .butt and .square
How can I create a custom corner radius for the lineCap?
Here is the code:
Circle()
.trim(from: CGFloat(start + offset), to: CGFloat(end - offset))
.stroke(
color,
style: StrokeStyle(
lineWidth: ringWidth,
lineCap: .square ,
)
)