-
Notifications
You must be signed in to change notification settings - Fork 0
Style/#66 마이페이지 #71
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
Merged
The head ref may contain hidden characters: "style/#66-\uB9C8\uC774\uD398\uC774\uC9C0"
Merged
Style/#66 마이페이지 #71
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 0 additions & 163 deletions
163
...h-iOS/Cherrish-iOS/Assets.xcassets/home_icon/cherrish_character.imageset/체리.svg
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
Cherrish-iOS/Cherrish-iOS/Assets.xcassets/mypage_icon/Contents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "info" : { | ||
| "author" : "xcode", | ||
| "version" : 1 | ||
| } | ||
| } |
23 changes: 23 additions & 0 deletions
23
Cherrish-iOS/Cherrish-iOS/Assets.xcassets/mypage_icon/illustration_my.imageset/Contents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "images" : [ | ||
| { | ||
| "filename" : "illustration_my.png", | ||
| "idiom" : "universal", | ||
| "scale" : "1x" | ||
| }, | ||
| { | ||
| "filename" : "illustration_my@2x.png", | ||
| "idiom" : "universal", | ||
| "scale" : "2x" | ||
| }, | ||
| { | ||
| "filename" : "illustration_my@3x.png", | ||
| "idiom" : "universal", | ||
| "scale" : "3x" | ||
| } | ||
| ], | ||
| "info" : { | ||
| "author" : "xcode", | ||
| "version" : 1 | ||
| } | ||
| } |
Binary file added
BIN
+43.4 KB
...sh-iOS/Assets.xcassets/mypage_icon/illustration_my.imageset/illustration_my.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+117 KB
...iOS/Assets.xcassets/mypage_icon/illustration_my.imageset/illustration_my@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+221 KB
...iOS/Assets.xcassets/mypage_icon/illustration_my.imageset/illustration_my@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
...cherrish_character.imageset/Contents.json → ...lustration_profile.imageset/Contents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "images" : [ | ||
| { | ||
| "filename" : "체리.svg", | ||
| "filename" : "illustration_profile.svg", | ||
| "idiom" : "universal" | ||
| } | ||
| ], | ||
|
|
||
106 changes: 106 additions & 0 deletions
106
...ets.xcassets/mypage_icon/illustration_profile.imageset/illustration_profile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,9 +9,63 @@ import SwiftUI | |
|
|
||
| struct MyPageView: View { | ||
| var body: some View { | ||
| ZStack { | ||
| Color.red500 | ||
| Text("MyPageView") | ||
| VStack { | ||
| Spacer() | ||
| .frame(height: 52.adjustedH) | ||
| headerView | ||
| grayEmptyBar | ||
| prepareView | ||
| .padding(.horizontal, 35) | ||
| grayEmptyBar | ||
| } | ||
| } | ||
| } | ||
|
|
||
| extension MyPageView { | ||
| private var headerView: some View { | ||
| HStack (spacing: 14.adjustedW) { | ||
| Image(.illustrationProfile) | ||
| .resizable() | ||
| .frame(width: 48.adjustedW, height: 48.adjustedH) | ||
|
|
||
| VStack(alignment: .leading, spacing: 0){ | ||
| TypographyText("안녕하세요, 김채채 님", style: .title1_sb_18, color: .gray1000) | ||
| .frame(height: 27.adjustedH) | ||
|
|
||
| TypographyText("관리 시작 D + 13", style: .body1_m_14, color: .gray800) | ||
| .frame(height: 20.adjustedH) | ||
| } | ||
|
|
||
| Spacer() | ||
| } | ||
| .frame(maxWidth: .infinity) | ||
| .padding(.leading, 24.adjustedW) | ||
|
|
||
| } | ||
|
|
||
| private var prepareView: some View { | ||
| VStack(alignment: .center) { | ||
| Spacer() | ||
| .frame(height: 100.adjustedH) | ||
|
|
||
| Image(.illustrationMy) | ||
| .resizable() | ||
| .frame(width: 308.adjustedW, height: 250.adjustedH) | ||
|
|
||
| TypographyText("앗! 아직 준비 중이에요.", style: .body1_m_14, color: .gray500) | ||
|
Comment on lines
+46
to
+55
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. 장식 이미지 접근성 처리 + 문구 로컬라이징 권장 장식용 일러스트는 VoiceOver 노이즈를 줄이기 위해 숨기는 편이 좋고, 안내 문구는 로컬라이징 대상으로 분리하는 것이 안전합니다. 🔧 예시- Image(.illustrationMy)
+ Image(.illustrationMy)
.resizable()
.frame(width: 308.adjustedW, height: 250.adjustedH)
+ .accessibilityHidden(true)
- TypographyText("앗! 아직 준비 중이에요.", style: .body1_m_14, color: .gray500)
+ TypographyText("앗! 아직 준비 중이에요.", style: .body1_m_14, color: .gray500) // 로컬라이징 분리 권장🤖 Prompt for AI Agents |
||
|
|
||
| Spacer() | ||
| .frame(height: 110.adjustedH) | ||
| } | ||
| } | ||
|
|
||
| private var grayEmptyBar: some View { | ||
| Rectangle() | ||
| .fill(.gray100) | ||
| .frame(height: 10.adjustedH) | ||
| } | ||
| } | ||
|
|
||
| #Preview { | ||
| MyPageView() | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
사용자 정보 하드코딩 제거 필요
실사용 화면에서 사용자명이 고정으로 표시되고 D+ 값도 고정됩니다. 뷰 모델/입력 파라미터로 전달받도록 변경해 주세요. 프리뷰도 함께 갱신이 필요합니다.
🛠️ 개선 예시
Also applies to: 69-71
🤖 Prompt for AI Agents