x 로그인 버튼 제거, 언어에 관계없이 Line 로그인 버튼 보이도록 수정

This commit is contained in:
Yu Sung
2026-01-28 23:18:59 +09:00
parent 42e375ec4b
commit 5cd0ea9bc2

View File

@@ -20,10 +20,6 @@ struct LoginView: View {
@State private var isPasswordVisible: Bool = false
@FocusState private var focusedField: FocusField?
private var isJapaneseLanguage: Bool {
locale.identifier.hasPrefix("ja")
}
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
ZStack {
@@ -134,36 +130,29 @@ struct LoginView: View {
AppState.shared.setAppStep(step: .signUp)
}
Image("ic_login_google")
.onTapGesture {
hideKeyboard()
viewModel.loginWithGoogle()
}
Image("ic_login_apple")
.onTapGesture {
hideKeyboard()
viewModel.loginWithApple()
}
if isJapaneseLanguage {
Image("ic_login_line")
.onTapGesture {
hideKeyboard()
viewModel.loginWithLine()
}
Image("ic_login_x")
.onTapGesture {
hideKeyboard()
}
} else {
Image("ic_login_kakao")
.onTapGesture {
hideKeyboard()
viewModel.loginWithKakao()
}
}
Image("ic_login_google")
.onTapGesture {
hideKeyboard()
viewModel.loginWithGoogle()
}
Image("ic_login_kakao")
.onTapGesture {
hideKeyboard()
viewModel.loginWithKakao()
}
Image("ic_login_line")
.onTapGesture {
hideKeyboard()
viewModel.loginWithLine()
}
}
.padding(.top, 20)