-
Notifications
You must be signed in to change notification settings - Fork 0
Style/#72 다운타임 세팅 뷰 구현 #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1d56d94
e8453b9
0655ef5
d582253
4666f30
290ca86
59e4484
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,5 @@ struct CalendarView: View { | |
| Color.red700 | ||
| Text("CalendarView") | ||
| } | ||
|
|
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,72 @@ | ||||||||||
| // | ||||||||||
| // DownTimeSettingView.swift | ||||||||||
| // Cherrish-iOS | ||||||||||
| // | ||||||||||
| // Created by 어재선 on 1/16/26. | ||||||||||
| // | ||||||||||
|
|
||||||||||
| import SwiftUI | ||||||||||
|
|
||||||||||
| struct DownTimeSettingView: View { | ||||||||||
| var treatments: [TreatmentEntity] | ||||||||||
|
|
||||||||||
| var body: some View { | ||||||||||
| VStack { | ||||||||||
| Spacer() | ||||||||||
| .frame(height: 30) | ||||||||||
|
|
||||||||||
| HStack { | ||||||||||
| TypographyText( | ||||||||||
| "필요에 맞게 다운타임을 조정할 수 있어요.", | ||||||||||
| style: .title1_sb_18, | ||||||||||
| color: .gray1000 | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| Spacer() | ||||||||||
|
|
||||||||||
| } | ||||||||||
| ScrollView(.vertical, showsIndicators: false) { | ||||||||||
| ForEach(treatments, id: \.self) { treatment in | ||||||||||
| TreatmentRowView(displayMode: .completeBoxView, treatmentEntity: treatment, isSelected: .constant(false), isCompleted: .constant(false), action: {}) | ||||||||||
|
Comment on lines
+29
to
+30
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 개행좀 해주세요
Comment on lines
+29
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial
♻️ 제안하는 수정- ForEach(treatments, id: \.self) { treatment in
+ ForEach(treatments, id: \.id) { treatment in
TreatmentRowView(displayMode: .completeBoxView, treatmentEntity: treatment, isSelected: .constant(false), isCompleted: .constant(false), action: {})
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| } | ||||||||||
|
|
||||||||||
| Spacer() | ||||||||||
| .frame(height: 14.adjustedH) | ||||||||||
|
|
||||||||||
| HStack(alignment: .top, spacing: 0) { | ||||||||||
| TypographyText( | ||||||||||
| "◎", | ||||||||||
| style: .body3_r_12, | ||||||||||
| color: .gray600 | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| VStack(alignment: .leading, spacing: 0) { | ||||||||||
| TypographyText( | ||||||||||
| "본 정보는 의료 상담이나 진단을 대체하지 않으며,", | ||||||||||
| style: .body3_r_12, | ||||||||||
| color: .gray600 | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| TypographyText( | ||||||||||
| "실제 다운타임 및 회복 과정은 개인에 따라 다를 수 있습니다.", | ||||||||||
| style: .body3_r_12, | ||||||||||
| color: .gray600 | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| TypographyText( | ||||||||||
| "정확한 내용은 의료진 상담을 통해 확인하세요.", | ||||||||||
| style: .body3_r_12, | ||||||||||
| color: .gray600 | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| } | ||||||||||
|
Comment on lines
43
to
62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial 면책 조항 텍스트를 하나의 문자열로 통합하는 것을 고려해보세요. 세 개의 🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| Spacer() | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
||||||||||
| } | ||||||||||
| .padding(.horizontal, 25.adjustedW) | ||||||||||
| } | ||||||||||
|
|
||||||||||
| } | ||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ enum TreatmentCategory: CaseIterable, Identifiable { | |
| return "모공" | ||
| case .trouble: | ||
| return "트러블" | ||
|
|
||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
파일 위치가 적절하지 않습니다.
DownTimeSettingView.swift파일이Model폴더에 위치해 있지만, 이 파일은 SwiftUI View입니다. 프로젝트 구조의 일관성을 위해View폴더로 이동하는 것이 좋습니다.🤖 Prompt for AI Agents