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

merge :: SchoolConfirmationQuestions UI #95

Merged
merged 18 commits into from
Oct 27, 2022

Conversation

sian7563
Copy link
Member

개요

SchoolConfirmationQuestions UI

작업사항

SchoolConfirmationQuestions UI

@sian7563 sian7563 added the ✨feat 새로운 기능을 추가 할 경우 label Oct 26, 2022
@sian7563 sian7563 requested a review from baekteun as a code owner October 26, 2022 15:52
@sian7563 sian7563 self-assigned this Oct 26, 2022
VStack(spacing: 72) {
DMSFloatingTextField(
"답변",
text: $viewModel.id,
Copy link
Member

Choose a reason for hiding this comment

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

왜 id랑 바인딩하는지..?


HStack(spacing: 16) {
Text("이미 계정이 있으신가요?")
.dmsFont(.text(.extraSmall), color: .GrayScale.gray5)
Copy link
Member

Choose a reason for hiding this comment

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

스크린샷 2022-10-27 오전 10 12 59

small이 맞아보입니다

@Published var id = ""
@Published var answer = ""
@Published var isDisabled = true
@Published var isNavigateCheckConfirmationQuestion = false
Copy link
Member

Choose a reason for hiding this comment

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

isNavigateCheckConfirmationQuestion는 CheckConfirmationQuestion에 navigate하겠냐는 의미이니.. 조금.. 안맞는거같습니다

Comment on lines 11 to 13
var isSignupButtonEnabled: Bool {
!id.isEmpty
}
Copy link
Member

Choose a reason for hiding this comment

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

signup보다는 confirm에 더 가까워보입니다

Comment on lines 37 to 38
text: $viewModel.id,
isError: viewModel.isErrorOcuured
Copy link
Member

Choose a reason for hiding this comment

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

errorMessage도 넣어주세요

Text("우리 학교 학생 수는?")
.dmsFont(.text(.large), color: .GrayScale.gray7)
.padding(.top, 50)
}.padding(.horizontal, 24)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}.padding(.horizontal, 24)
}
.padding(.horizontal, 24)

으로 해주세요

VStack(alignment: .leading, spacing: 8) {
Text("DMS")
.dmsFont(.title(.extraLarge), color: .PrimaryVariant.primary)
.padding(.top, 28)
Copy link
Member

@baekteun baekteun Oct 27, 2022

Choose a reason for hiding this comment

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

이 padding은 HStack에 붙이는게 더 좋을거같아요

Comment on lines 6 to 7
case id
case password
Copy link
Member

Choose a reason for hiding this comment

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

..?

text: $viewModel.id,
isError: viewModel.isErrorOcuured
)
.textContentType(.username)
Copy link
Member

Choose a reason for hiding this comment

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

textContentType을 지정해버리면 키체인에 저장되어버려요..

Comment on lines 1 to 29
import SwiftUI

import Combine

struct PasscodeView: View {
@Binding var text: String
@FocusState var focused: Bool

var body: some View {
VStack {
ZStack {
TextField("", text: $text)
.focused($focused)
.keyboardType(.numberPad)
.accentColor(.clear)
.foregroundColor(.clear)
.onReceive(Just(text), perform: { _ in
if 8 < text.count {
text = String(text.prefix(8))
}
})

HStack(spacing: 20) {
ForEach(1...8, id: \.self) { num in
Circle()
.frame(width: 20, height: 20)
.foregroundColor(text.count >= num ? Color.GrayScale.gray6 : Color.GrayScale.gray4)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

이 친구 DesignSystem 모듈안으로 갔으니가 지워줘야할거같아요

Comment on lines 36 to 40
PasscodeView(text: $viewModel.schoolCode)

DMSPassCodeView(codeCount: 8, text: $viewModel.schoolCode)

.padding(.horizontal, 64)
Copy link
Member

Choose a reason for hiding this comment

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

어?

@sian7563 sian7563 merged commit b836adb into develop Oct 27, 2022
@sian7563 sian7563 deleted the feat/89_SchoolConfirmationQuestions-UI branch October 27, 2022 13:41
@sian7563 sian7563 linked an issue Oct 27, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨feat 새로운 기능을 추가 할 경우
Projects
None yet
Development

Successfully merging this pull request may close these issues.

회원가입 - 학교 확인 질문 Feature
3 participants