Skip to content

Commit 608db8e

Browse files
author
Vasil Blanco-Nunev
committed
Fix deprecated ProgressView
1 parent 035bfef commit 608db8e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/SkipUI/SkipUI/Components/ProgressView.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ public struct ProgressView : View {
9595
if value == nil || total == nil {
9696
LinearProgressIndicator(modifier: modifier, color: color)
9797
} else {
98-
LinearProgressIndicator(progress: Float(value! / total!), modifier: modifier, color: color)
98+
LinearProgressIndicator(
99+
progress: { Float(value! / total!) },
100+
modifier: modifier,
101+
color: color,
102+
gapSize = -8.dp, // Makes sure the progress overlaps the background
103+
drawStopIndicator = {}
104+
)
99105
}
100106
}
101107

0 commit comments

Comments
 (0)