-
Notifications
You must be signed in to change notification settings - Fork 0
[Refactor] MyPage 레이아웃 개선 및 디자인 반영02 #76
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
base: dev
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -15,57 +15,63 @@ struct SettingsView: View { | |
| @State private var showWithdrawAlert = false | ||
|
|
||
| var body: some View { | ||
| VStack(alignment: .leading) { | ||
| VStack(alignment: .leading, spacing: 16) { | ||
| MyPageHeader(title: "설정") | ||
| .padding([.horizontal, .top]) | ||
| .padding(.horizontal, 32) | ||
|
|
||
| ScrollView { | ||
| // 앱 정보 | ||
| SectionContainerView(title: "앱 정보") { | ||
| SettingCard(title: "버전 정보", sub: viewModel.appVersion) { | ||
| print("버전 정보 탭") | ||
| VStack(alignment: .leading, spacing: 12){ | ||
| // 앱 정보 | ||
| SectionContainerView(title: "앱 정보") { | ||
| SettingCard(title: "버전 정보", sub: viewModel.appVersion) { | ||
| print("버전 정보 탭") | ||
| } | ||
| SettingCard(title: "업데이트 확인", sub: "최신 버전", subColor: .mainMint) { | ||
| print("업데이트 확인 탭") | ||
| } | ||
| SettingCard(title: "오픈소스 라이선스") { | ||
| print("오픈소스 라이선스 탭") | ||
| } | ||
|
Comment on lines
+29
to
+34
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. 신규 메뉴 항목들의 "업데이트 확인", "오픈소스 라이선스", "서비스 이용약관", "개인정보 처리방침", "위치 정보 이용약관", "의견 보내기" 모두 실제 네비게이션( 추적 이슈로 등록하거나, 각 항목별 네비게이션 로직을 구현하는 초안이 필요하시면 도움드릴 수 있습니다. Also applies to: 51-68 🤖 Prompt for AI Agents |
||
| } | ||
| SettingCard(title: "업데이트 확인", sub: "최신 버전", subColor: .mainMint) { | ||
| print("업데이트 확인 탭") | ||
| } | ||
| SettingCard(title: "오픈소스 라이선스") { | ||
| print("오픈소스 라이선스 탭") | ||
| } | ||
| } | ||
| .padding(.top) | ||
|
|
||
| // 계정 | ||
| SectionContainerView(title: "계정") { | ||
| SettingCard(title: "로그아웃") { | ||
| showLogoutAlert = true | ||
| } | ||
| SettingCard(title: "회원 탈퇴", isRed: true) { | ||
| showWithdrawAlert = true | ||
| } | ||
| } | ||
|
|
||
| // 약관 및 정책 | ||
| SectionContainerView(title: "약관 및 정책") { | ||
| SettingCard(title: "서비스 이용약관") { | ||
| print("서비스 이용약관 탭") | ||
| } | ||
| SettingCard(title: "개인정보 처리방침") { | ||
| print("개인정보 처리방침 탭") | ||
| } | ||
| SettingCard(title: "위치 정보 이용약관") { | ||
| print("위치 정보 이용약관 탭") | ||
| .padding(.horizontal, 32) | ||
|
|
||
| // 계정 | ||
| SectionContainerView(title: "계정") { | ||
| SettingCard(title: "로그아웃") { | ||
| showLogoutAlert = true | ||
| } | ||
| SettingCard(title: "회원 탈퇴", isRed: true) { | ||
| showWithdrawAlert = true | ||
| } | ||
| } | ||
| } | ||
| .padding(.horizontal, 32) | ||
|
|
||
| // 고객센터 | ||
| SectionContainerView(title: "고객센터") { | ||
| SettingCard(title: "의견 보내기") { | ||
| print("의견 보내기 탭") | ||
| // 약관 및 정책 | ||
| SectionContainerView(title: "약관 및 정책") { | ||
| SettingCard(title: "서비스 이용약관") { | ||
| print("서비스 이용약관 탭") | ||
| } | ||
| SettingCard(title: "개인정보 처리방침") { | ||
| print("개인정보 처리방침 탭") | ||
| } | ||
| SettingCard(title: "위치 정보 이용약관") { | ||
| print("위치 정보 이용약관 탭") | ||
| } | ||
| } | ||
| .padding(.horizontal, 32) | ||
|
|
||
| // 고객센터 | ||
| SectionContainerView(title: "고객센터") { | ||
| SettingCard(title: "의견 보내기") { | ||
| print("의견 보내기 탭") | ||
| } | ||
| } | ||
| .padding(.bottom, 80) | ||
| .padding(.horizontal, 32) | ||
| } | ||
| .padding(.bottom, 80) | ||
| } | ||
| } | ||
| .padding(.vertical, 16) | ||
| .task { | ||
| viewModel.loadAppVersion() | ||
| } | ||
|
|
@@ -118,7 +124,7 @@ struct SettingCard: View { | |
| .frame(width: 6, height: 8) | ||
| .foregroundStyle(.gray2) | ||
| } | ||
| .padding() | ||
| .padding(.vertical) | ||
| } | ||
| } | ||
| } | ||
|
|
||
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.
"업데이트 확인"의 sub 텍스트 "최신 버전"이 하드코딩되어 있습니다
현재는 실제 버전 비교 없이 항상 "최신 버전"을 표시합니다. 사용자에게 잘못된 정보를 줄 수 있는 UI입니다.
viewModel.appVersion을 실제 앱스토어 최신 버전과 비교하는 로직이 연결되기 전까지는 빈 문자열이나 다른 상태 표시로 대체하는 것을 권장합니다.🛡️ 임시 처리 제안
🤖 Prompt for AI Agents