Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Sources/SkipUI/SkipUI/Components/ProgressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!) },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the deprecated API fix. I'd like to leave everything else as using default values (i.e. just exclude the gapSize and drawStopIndicator parameters) for the normal Compose look. We can eventually add custom modifiers to change the Material view, as we've done for other components.

And could you also make the fix for CircularProgressIndicator?

modifier: modifier,
color: color,
gapSize = -8.dp, // Makes sure the progress overlaps the background
drawStopIndicator = {}
)
}
}

Expand Down