From 728bea60c2408cb92a7438fc8a57ed89fae9d07b Mon Sep 17 00:00:00 2001 From: cheykrym Date: Tue, 7 Oct 2025 00:59:34 +0300 Subject: [PATCH] add change password --- yobble/Resources/Localizable.xcstrings | 3 +++ yobble/Views/Tab/Settings/ChangePasswordView.swift | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/yobble/Resources/Localizable.xcstrings b/yobble/Resources/Localizable.xcstrings index 06226fa..0d21227 100644 --- a/yobble/Resources/Localizable.xcstrings +++ b/yobble/Resources/Localizable.xcstrings @@ -234,6 +234,9 @@ }, "Избранные сообщения" : { + }, + "Изменение пароля" : { + }, "Инвайт-код (необязательно)" : { "comment" : "Инвайт-код", diff --git a/yobble/Views/Tab/Settings/ChangePasswordView.swift b/yobble/Views/Tab/Settings/ChangePasswordView.swift index 709e4d5..936000a 100644 --- a/yobble/Views/Tab/Settings/ChangePasswordView.swift +++ b/yobble/Views/Tab/Settings/ChangePasswordView.swift @@ -58,6 +58,9 @@ struct ChangePasswordView: View { .foregroundColor(isPasswordConfirmValid ? .green : .red) } } + + + } var isButtonEnabled: Bool { @@ -71,9 +74,16 @@ struct ChangePasswordView: View { print("confirmPassword: \(confirmPassword)") }) { Text(NSLocalizedString("Применить", comment: "")) + .foregroundColor(.white) + .padding() + .frame(maxWidth: .infinity) .background(isButtonEnabled ? Color.blue : Color.gray) + .cornerRadius(8) } .disabled(!isButtonEnabled) + .buttonStyle(PlainButtonStyle()) + .listRowInsets(EdgeInsets()) + .listRowBackground(Color.clear) } .navigationTitle(NSLocalizedString("Изменение пароля", comment: "")) }