@@ -43,7 +43,10 @@ public struct SUProgressBar: View {
4343 HStack ( spacing: 4 ) {
4444 RoundedRectangle ( cornerRadius: self . model. computedCornerRadius)
4545 . foregroundStyle ( self . model. barColor. color)
46- . frame ( width: geometry. size. width * self . progress, height: self . model. barHeight)
46+ . frame (
47+ width: geometry. size. width * self . progress,
48+ height: self . model. barHeight
49+ )
4750 RoundedRectangle ( cornerRadius: self . model. computedCornerRadius)
4851 . foregroundStyle ( self . model. backgroundColor. color)
4952 . frame ( width: geometry. size. width * ( 1 - self . progress) , height: self . model. barHeight)
@@ -58,7 +61,10 @@ public struct SUProgressBar: View {
5861
5962 RoundedRectangle ( cornerRadius: self . model. innerCornerRadius)
6063 . foregroundStyle ( self . model. color. contrast. color)
61- . frame ( width: ( geometry. size. width - self . model. innerBarPadding * 2 ) * self . progress, height: self . model. barHeight - self . model. innerBarPadding * 2 )
64+ . frame (
65+ width: ( geometry. size. width - self . model. innerBarPadding * 2 ) * self . progress,
66+ height: self . model. barHeight - self . model. innerBarPadding * 2
67+ )
6268 . padding ( . vertical, self . model. innerBarPadding)
6369 . padding ( . horizontal, self . model. innerBarPadding)
6470 }
@@ -72,7 +78,10 @@ public struct SUProgressBar: View {
7278
7379 RoundedRectangle ( cornerRadius: self . model. innerCornerRadius)
7480 . foregroundStyle ( self . model. color. contrast. color)
75- . frame ( width: ( geometry. size. width - self . model. innerBarPadding * 2 ) * self . progress, height: self . model. barHeight - self . model. innerBarPadding * 2 )
81+ . frame (
82+ width: ( geometry. size. width - self . model. innerBarPadding * 2 ) * self . progress,
83+ height: self . model. barHeight - self . model. innerBarPadding * 2
84+ )
7685 . padding ( . vertical, self . model. innerBarPadding)
7786 . padding ( . horizontal, self . model. innerBarPadding)
7887
0 commit comments