Skip to content

Commit c2e44c7

Browse files
committed
ui: 주차 라벨을 차트 하단으로 이동시켜 차트 범주 ui 개선
1 parent 54b545b commit c2e44c7

2 files changed

Lines changed: 6 additions & 24 deletions

File tree

DevLog/Resource/Localizable.xcstrings

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -979,23 +979,6 @@
979979
}
980980
}
981981
},
982-
"profile_week_format" : {
983-
"extractionState" : "manual",
984-
"localizations" : {
985-
"en" : {
986-
"stringUnit" : {
987-
"state" : "translated",
988-
"value" : "Week %1$lld"
989-
}
990-
},
991-
"ko" : {
992-
"stringUnit" : {
993-
"state" : "translated",
994-
"value" : "%1$lld주"
995-
}
996-
}
997-
}
998-
},
999982
"profile_weekday_fri" : {
1000983
"extractionState" : "manual",
1001984
"localizations" : {
@@ -3455,4 +3438,4 @@
34553438
}
34563439
},
34573440
"version" : "1.0"
3458-
}
3441+
}

DevLog/UI/Profile/ProfileTrendChartView.swift

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ struct ProfileTrendChartView: View {
5454
AxisMarks(values: axisWeekIndices) { value in
5555
AxisValueLabel {
5656
if let weekIndex = value.as(Int.self) {
57-
Text(
58-
String.localizedStringWithFormat(
59-
String(localized: "profile_week_format"),
60-
Int64(weekIndex)
61-
)
62-
)
57+
Text("\(weekIndex)")
6358
.font(.caption2)
6459
.fixedSize()
6560
}
@@ -88,6 +83,10 @@ struct ProfileTrendChartView: View {
8883
.clipShape(RoundedRectangle(cornerRadius: 10))
8984
}
9085
.frame(height: chartHeight)
86+
87+
Text(String(localized: "profile_week_axis"))
88+
.font(.caption2)
89+
.foregroundStyle(.secondary)
9190
} else {
9291
VStack(spacing: 6) {
9392
Image(systemName: "chart.line.uptrend.xyaxis")

0 commit comments

Comments
 (0)