Skip to content

Commit 54b545b

Browse files
committed
ui: 차트 trailing 쪽 축 제거
1 parent 1b45327 commit 54b545b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

DevLog/UI/Profile/ProfileTrendChartView.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ struct ProfileTrendChartView: View {
5252
)
5353
.chartXAxis {
5454
AxisMarks(values: axisWeekIndices) { value in
55-
AxisGridLine(stroke: StrokeStyle(lineWidth: 0.5))
56-
.foregroundStyle(.quaternary)
57-
AxisTick(stroke: StrokeStyle(lineWidth: 0.5))
58-
.foregroundStyle(.quaternary)
5955
AxisValueLabel {
6056
if let weekIndex = value.as(Int.self) {
6157
Text(
@@ -68,6 +64,12 @@ struct ProfileTrendChartView: View {
6864
.fixedSize()
6965
}
7066
}
67+
if let weekIndex = value.as(Int.self), weekIndex != xDomain.upperBound {
68+
AxisGridLine(stroke: StrokeStyle(lineWidth: 0.5))
69+
.foregroundStyle(.quaternary)
70+
AxisTick(stroke: StrokeStyle(lineWidth: 0.5))
71+
.foregroundStyle(.quaternary)
72+
}
7173
}
7274
}
7375
.chartYAxis {

0 commit comments

Comments
 (0)