로그인, 비밀번호 찾기, 회원가입
- TextField 터치영역 개선
This commit is contained in:
@@ -11,6 +11,7 @@ struct FindPasswordView: View {
|
||||
|
||||
@StateObject var viewModel = FindPasswordViewModel()
|
||||
@StateObject var keyboardHandler = KeyboardHandler()
|
||||
@FocusState private var isFocused: Bool
|
||||
|
||||
var body: some View {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
@@ -37,6 +38,7 @@ struct FindPasswordView: View {
|
||||
.padding(.horizontal, 26.7)
|
||||
|
||||
TextField("이메일을 입력하세요", text: $viewModel.email)
|
||||
.focused($isFocused)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.font(.custom(Font.medium.rawValue, size: 15))
|
||||
@@ -48,6 +50,9 @@ struct FindPasswordView: View {
|
||||
.background(RoundedRectangle(cornerRadius: 6.7).fill(Color.gray33.opacity(0.7)))
|
||||
.padding(.top, 40)
|
||||
.padding(.horizontal, 26.7)
|
||||
.onTapGesture {
|
||||
isFocused = true
|
||||
}
|
||||
|
||||
Text("임시 비밀번호 받기")
|
||||
.font(.custom(Font.bold.rawValue, size: 18.3))
|
||||
@@ -79,6 +84,9 @@ struct FindPasswordView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.onAppear {
|
||||
isFocused = true
|
||||
}
|
||||
}
|
||||
}
|
||||
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .bottom, autohideIn: 2) {
|
||||
|
Reference in New Issue
Block a user