Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extension ProgressBarVM {
}

var progressHeight: CGFloat {
return self.backgroundHeight - self.progressPadding
return self.backgroundHeight - self.progressPadding * 2
}

func cornerRadius(for height: CGFloat) -> CGFloat {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public struct SUProgressBar: View {
StripesShape(model: self.model)
.foregroundStyle(self.model.color.main.color)
.cornerRadius(self.model.cornerRadius(for: self.model.progressHeight))
.clipped()
.frame(width: (geometry.size.width - self.model.progressPadding * 2) * self.progress)
.padding(.vertical, self.model.progressPadding)
.padding(.horizontal, self.model.progressPadding)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ extension SegmentedControlVM {
case .none, .full, .custom:
return componentRadius
case .small, .medium, .large:
return max(0, componentRadius - self.outerPaddings / 2)
return max(0, componentRadius - self.outerPaddings)
}
}
func preferredFont(for id: ID) -> UniversalFont {
Expand Down
Loading