Skip to content
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

Merged
merged 3 commits into from
Oct 24, 2022
Merged

Conversation

Hongjaaa
Copy link
Collaborator

@Hongjaaa Hongjaaa commented Oct 24, 2022

Motivation

Key Change

imageimage

To Reviewers

  • MySettingView 내에 보이는 MyProfileView와 SettingList 작업도 올릴 예정입니다.
  • SettingList를 List를 활용하여 만들고자 하였으나, MySettingView의 Scroll 기능이 겹쳐 Ractangle과 Divider로 작업을 하였습니다.

@Hongjaaa Hongjaaa self-assigned this Oct 24, 2022
Comment on lines 86 to 112
//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())
//}

Copy link
Collaborator Author

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 {
Copy link
Collaborator Author

@Hongjaaa Hongjaaa Oct 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MyProfileView의 레이아웃을 설정 탭에서 확인하고자 코드를 작성하였습니다.
작업하면서 수정될 코드들입니다.

Copy link
Member

@Juhwa-Lee1023 Juhwa-Lee1023 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

Comment on lines +17 to +46
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()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반복적으로 사용한는 HStackDivider를 따로 뷰로 만들 수 있을 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List가 아닌 Stack을 사용하였는데, Stack을 더욱 잘게 만들어서 따로 뷰로 만들어보겠습니다!
감사합니다!

Copy link
Collaborator

@yeniful yeniful left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

홍자 고생하셨습니다 :D !! 이전 버전보다 발전된 마이페이지가 기대되네요!

Comment on lines +23 to +25
.padding(.leading, 329)
.padding(.trailing, 46)
.padding(.bottom, 450)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

padding을 한번에 묶어서 값을 줄 수 있을 것 같아요!

Comment on lines +58 to +65
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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Divider()를 두 개 만들어주셨군요!

@yeniful yeniful merged commit 27f0e55 into develop Oct 24, 2022
@yeniful yeniful deleted the feat/mysettingview branch October 24, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants