Skip to content

Commit

Permalink
Center rounded line alignment for StepIndicatorVerticalView (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Cole <ryan_cole@intuit.com>
  • Loading branch information
rcole34 and Ryan Cole committed May 19, 2021
1 parent d0b85dc commit 03893c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/StepperView/Views/StepIndicatorVerticalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ extension StepIndicatorVerticalView {
return RoundedRectangle(cornerRadius: cornerRadius)
.foregroundColor(stepLifeCycle[index] == StepLifeCycle.completed ? color : Color.gray.opacity(0.5))
.frame(width: width, height: self.verticalSpacing)
.offset(x: proxy[value].midX - width, y: proxy[value].maxY)
.offset(x: proxy[value].midX - width/2, y: proxy[value].maxY)
.eraseToAnyView()
default:
return EmptyView().eraseToAnyView()
Expand Down

0 comments on commit 03893c4

Please sign in to comment.