-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feat] #4 SettingView - MySettingView 구현 #21
Conversation
//List { | ||
// Text(" 앱 버전 정보") | ||
// .setBasicBody() | ||
// .listRowBackground(Color.grayScale5) | ||
// .listRowSeparatorTint(Color.white.opacity(0.2)) | ||
// .listRowInsets(EdgeInsets()) | ||
// Text(" 푸시 알림 설정") | ||
// .setBasicBody() | ||
// .listRowBackground(Color.grayScale5) | ||
// .listRowSeparatorTint(Color.white.opacity(0.2)) | ||
// .listRowInsets(EdgeInsets()) | ||
// Text(" 라이센스 정보") | ||
// .setBasicBody() | ||
// .listRowBackground(Color.grayScale5) | ||
// .listRowSeparatorTint(Color.white.opacity(0.2)) | ||
// .listRowInsets(EdgeInsets()) | ||
// Text(" 이용 약관") | ||
// .setBasicBody() | ||
// .listRowBackground(Color.grayScale5) | ||
// .listRowSeparatorTint(Color.white.opacity(0.2)) | ||
// .listRowInsets(EdgeInsets()) | ||
// Text(" 도전 포기하기") | ||
// .foregroundColor(Color.red) | ||
// .listRowBackground(Color.grayScale5) | ||
// .listRowInsets(EdgeInsets()) | ||
//} | ||
|
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.
지우는 걸 깜빡해서 바로 수정해둘게요
|
||
import SwiftUI | ||
|
||
struct MyProfileView: View { |
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.
MyProfileView의 레이아웃을 설정 탭에서 확인하고자 코드를 작성하였습니다.
작업하면서 수정될 코드들입니다.
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.
고생하셨습니다!
HStack { | ||
Text("앱 버전 정보") | ||
.setBasicBody() | ||
.padding(.leading, 36) | ||
.padding(.top, 4) | ||
.padding(.bottom, 2.55) | ||
Spacer() | ||
} | ||
Divider() | ||
.frame(width: 356, height: 1) | ||
.background(Color.white.opacity(0.2)) | ||
HStack { | ||
Text("푸쉬 알림 설정") | ||
.setBasicBody() | ||
.padding(.leading, 36) | ||
.padding(.top, 1.45) | ||
.padding(.bottom, 2.55) | ||
Spacer() | ||
} | ||
Divider() | ||
.frame(width: 356, height: 1) | ||
.background(Color.white.opacity(0.2)) | ||
HStack { | ||
Text("라이센스 정보") | ||
.setBasicBody() | ||
.padding(.leading, 36) | ||
.padding(.top, 1.45) | ||
.padding(.bottom, 2.55) | ||
Spacer() | ||
} |
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.
반복적으로 사용한는 HStack
과 Divider
를 따로 뷰로 만들 수 있을 것 같아요!
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.
List가 아닌 Stack을 사용하였는데, Stack을 더욱 잘게 만들어서 따로 뷰로 만들어보겠습니다!
감사합니다!
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 !! 이전 버전보다 발전된 마이페이지가 기대되네요!
.padding(.leading, 329) | ||
.padding(.trailing, 46) | ||
.padding(.bottom, 450) |
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.
padding을 한번에 묶어서 값을 줄 수 있을 것 같아요!
Divider() | ||
.frame(width: 356, height: 1) | ||
.background(Color.white.opacity(0.2)) | ||
.padding(.bottom, -4) | ||
Divider() | ||
.frame(width: 356, height: 1) | ||
.background(Color.white.opacity(0.2)) | ||
.padding(.top, -4) |
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.
Divider()
를 두 개 만들어주셨군요!
Motivation
Key Change
To Reviewers