Skip to content

Commit

Permalink
Fix non-dashed rounded border
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelmcr committed Sep 26, 2024
1 parent 7d9be5e commit 85f5967
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct RoundedBorder: ViewModifier {
content
.overlay {
RoundedRectangle(cornerRadius: cornerRadius)
.stroke(style: StrokeStyle(lineWidth: lineWidth, dash: [dashed ? Layout.dashLength : 1]))
.stroke(style: StrokeStyle(lineWidth: lineWidth, dash: dashed ? [Layout.dashLength] : []))
.foregroundStyle(lineColor)
}
}
Expand Down

0 comments on commit 85f5967

Please sign in to comment.