From 9d31f76d717e70c22f238bd16d43516fbedde374 Mon Sep 17 00:00:00 2001 From: Vasil Blanco-Nunev Date: Sun, 2 Mar 2025 11:38:25 +0000 Subject: [PATCH] Fix deprecated ProgressView --- Sources/SkipUI/SkipUI/Components/ProgressView.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/SkipUI/SkipUI/Components/ProgressView.swift b/Sources/SkipUI/SkipUI/Components/ProgressView.swift index 219f90c..1c93123 100644 --- a/Sources/SkipUI/SkipUI/Components/ProgressView.swift +++ b/Sources/SkipUI/SkipUI/Components/ProgressView.swift @@ -103,7 +103,13 @@ public struct ProgressView : View { if value == nil || total == nil { LinearProgressIndicator(modifier: modifier, color: color) } else { - LinearProgressIndicator(progress: Float(value! / total!), modifier: modifier, color: color) + LinearProgressIndicator( + progress: { Float(value! / total!) }, + modifier: modifier, + color: color, + gapSize = -8.dp, // Makes sure the progress overlaps the background + drawStopIndicator = {} + ) } }