-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
VStack(spacing: 72) { | ||
DMSFloatingTextField( | ||
"답변", | ||
text: $viewModel.id, |
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.
왜 id랑 바인딩하는지..?
|
||
HStack(spacing: 16) { | ||
Text("이미 계정이 있으신가요?") | ||
.dmsFont(.text(.extraSmall), color: .GrayScale.gray5) |
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.
@Published var id = "" | ||
@Published var answer = "" | ||
@Published var isDisabled = true | ||
@Published var isNavigateCheckConfirmationQuestion = false |
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.
isNavigateCheckConfirmationQuestion는 CheckConfirmationQuestion에 navigate하겠냐는 의미이니.. 조금.. 안맞는거같습니다
var isSignupButtonEnabled: Bool { | ||
!id.isEmpty | ||
} |
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.
signup보다는 confirm에 더 가까워보입니다
text: $viewModel.id, | ||
isError: viewModel.isErrorOcuured |
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.
errorMessage도 넣어주세요
Text("우리 학교 학생 수는?") | ||
.dmsFont(.text(.large), color: .GrayScale.gray7) | ||
.padding(.top, 50) | ||
}.padding(.horizontal, 24) |
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(.horizontal, 24) | |
} | |
.padding(.horizontal, 24) |
으로 해주세요
VStack(alignment: .leading, spacing: 8) { | ||
Text("DMS") | ||
.dmsFont(.title(.extraLarge), color: .PrimaryVariant.primary) | ||
.padding(.top, 28) |
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은 HStack에 붙이는게 더 좋을거같아요
case id | ||
case password |
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.
..?
text: $viewModel.id, | ||
isError: viewModel.isErrorOcuured | ||
) | ||
.textContentType(.username) |
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.
textContentType을 지정해버리면 키체인에 저장되어버려요..
…ub.com/team-aliens/DMS-iOS into feat/89_SchoolConfirmationQuestions-UI
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) | ||
} | ||
} |
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.
이 친구 DesignSystem 모듈안으로 갔으니가 지워줘야할거같아요
PasscodeView(text: $viewModel.schoolCode) | ||
|
||
DMSPassCodeView(codeCount: 8, text: $viewModel.schoolCode) | ||
|
||
.padding(.horizontal, 64) |
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.
어?
…at/89_SchoolConfirmationQuestions-UI
개요
SchoolConfirmationQuestions UI
작업사항
SchoolConfirmationQuestions UI