Skip to content

Commit 03893c4

Browse files
rcole34Ryan Cole
and
Ryan Cole
authored
Center rounded line alignment for StepIndicatorVerticalView (#77)
Co-authored-by: Ryan Cole <[email protected]>
1 parent d0b85dc commit 03893c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StepperView/Views/StepIndicatorVerticalView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ extension StepIndicatorVerticalView {
224224
return RoundedRectangle(cornerRadius: cornerRadius)
225225
.foregroundColor(stepLifeCycle[index] == StepLifeCycle.completed ? color : Color.gray.opacity(0.5))
226226
.frame(width: width, height: self.verticalSpacing)
227-
.offset(x: proxy[value].midX - width, y: proxy[value].maxY)
227+
.offset(x: proxy[value].midX - width/2, y: proxy[value].maxY)
228228
.eraseToAnyView()
229229
default:
230230
return EmptyView().eraseToAnyView()

0 commit comments

Comments
 (0)