I found that setting a thicker lineWidth caused the progress circle to end up partially outside the border. This doesn't look great IMO, and isn't consistent with e.g. the download progress in the Music app.
This change allows a thicker lineWidth value to be used with any borderWidth value. As the line width grows, the radius shrinks so that it never ends up partially outside the border.
It preserves the half-pixel overlap of the original so that a little gap doesn't appear between the border and the progress circle.
I found that setting a thicker
lineWidth
caused the progress circle to end up partially outside the border. This doesn't look great IMO, and isn't consistent with e.g. the download progress in the Music app.This change allows a thicker
lineWidth
value to be used with anyborderWidth
value. As the line width grows, the radius shrinks so that it never ends up partially outside the border.It preserves the half-pixel overlap of the original so that a little gap doesn't appear between the border and the progress circle.