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/#17 SignUp,UserInfo TCA 적용 #20

Merged
merged 6 commits into from
Nov 10, 2023
Merged

Conversation

YugyeongChoi
Copy link
Collaborator

PR 요약

온보딩 중 SignUpView와 UerInfoView에 TCA를 적용시켰습니다.

📌 변경 사항

이미지 파일을 tuist 접근으로 쓸 수 있게 바꾸었습니다.

✅ PR check list

아무런 정보를 기입하지 않았을때 다음 화면으로 가는 것을 막아두었습니다.
그때마다 alert를 띄우고 싶어서 코드를 써보았는데, TCA적용을 하면 자꾸 오류가 나서 일단 showingAlert 부분은 TCA 적용을 하지 않은 상태입니다.

Linked Issue

close #17

Preview

SignUpView
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-10-09.at.15.31.24.mp4
UserInfoView
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-10-09.at.15.32.43.mp4

Copy link
Member

@mooyoung2309 mooyoung2309 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 +16 to +18
init() {
Thread.sleep(forTimeInterval: 2)
}
Copy link
Member

Choose a reason for hiding this comment

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

p5;

이친구 쓰임이 뭔가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이건 스플래시 화면을 만들었는데 빌드하니까 너무 빨리 사라져서, 스플래시 화면을 더 길게 보기위해서 임시로 작성한 코드입니다!

@@ -12,15 +12,90 @@ import ComposableArchitecture

public struct OnboardingUserInfoView: View {
let store: StoreOf<OnboardingUserInfoStore>
@State private var name = ""
@State private var showingAlert: Bool = false
Copy link
Member

Choose a reason for hiding this comment

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

p5;

alert도 TCA가 적용되면 좋을것같아요! 패스 해도 가능.
튜토리얼에 alert 예제까지 있는걸로 알아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

alert를 찾아보니까 난이도가 어려워보여서, 다른 일 먼저 하고 alert도 TCA 적용시켜보겠습니다!

Comment on lines 21 to +28
WithViewStore(self.store, observe: { $0 }) { viewStore in
VStack {
Text("Onboarding User Info View")
VStack{
Spacer()
HStack(){
Text("마지막으로,")
.font(.bold16)
.foregroundColor(.black)
Spacer()
Copy link
Member

Choose a reason for hiding this comment

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

p4;

전체적으로 View가 너무 길어져요. 함수로 빼거나, 파일로 분리하는 방식으로 가독성을 높이면 좋을 것 같습니다.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵 함수로 빼서 고치겠습니다!

@@ -12,16 +12,15 @@ struct TermsView: View {
var body: some View {
NavigationView(){
VStack{
Image("vector")
PldaAsset.Images.vector9.swiftUIImage
Copy link
Member

Choose a reason for hiding this comment

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

p5;

너무 이름이 길어지는 것 같은데, 뭔가 좋은방법이 없을까요? 한번 고민해보면 좋을 것 같아요.

@YugyeongChoi YugyeongChoi merged commit 33a1942 into develop Nov 10, 2023
1 check passed
@YugyeongChoi YugyeongChoi deleted the feat/#17-onboarding branch November 10, 2023 06:05
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.

[feat] 온보딩 TCA 적용
2 participants