@@ -44,10 +44,9 @@ public struct SUProgressBar: View {
4444 RoundedRectangle ( cornerRadius: self . model. computedCornerRadius)
4545 . foregroundStyle ( self . model. barColor. color)
4646 . frame ( width: geometry. size. width * self . progress, height: self . model. barHeight)
47- Rectangle ( )
47+ RoundedRectangle ( cornerRadius : self . model . computedCornerRadius )
4848 . foregroundStyle ( self . model. backgroundColor. color)
4949 . frame ( width: geometry. size. width * ( 1 - self . progress) , height: self . model. barHeight)
50- . cornerRadius ( self . model. computedCornerRadius)
5150 }
5251 . animation ( . spring, value: self . progress)
5352
@@ -57,7 +56,7 @@ public struct SUProgressBar: View {
5756 . foregroundStyle ( self . model. color. main. color)
5857 . frame ( width: geometry. size. width, height: self . model. barHeight)
5958
60- RoundedRectangle ( cornerRadius: self . model. computedCornerRadius )
59+ RoundedRectangle ( cornerRadius: self . model. innerCornerRadius )
6160 . foregroundStyle ( ( self . model. color. contrast ?? . foreground) . color)
6261 . frame ( width: ( geometry. size. width - 6 ) * self . progress, height: self . model. barHeight - 6 )
6362 . padding ( . vertical, self . model. contentPaddings. top)
@@ -71,7 +70,7 @@ public struct SUProgressBar: View {
7170 . foregroundStyle ( self . model. color. main. color)
7271 . frame ( width: geometry. size. width, height: self . model. barHeight)
7372
74- RoundedRectangle ( cornerRadius: self . model. computedCornerRadius )
73+ RoundedRectangle ( cornerRadius: self . model. innerCornerRadius )
7574 . foregroundStyle ( self . model. color. contrast. color)
7675 . frame ( width: ( geometry. size. width - 6 ) * self . progress, height: self . model. barHeight - 6 )
7776 . padding ( . vertical, self . model. contentPaddings. top)
0 commit comments