mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 19:56:57 +02:00
Make small improvements on KeyBackupSetupCoordinator and KeyBackupSetupPassphraseViewController
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
import UIKit
|
||||
|
||||
@objcMembers
|
||||
final class KeyBackupSetupCoordinator: NSObject, KeyBackupSetupCoordinatorType {
|
||||
final class KeyBackupSetupCoordinator: KeyBackupSetupCoordinatorType {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -62,8 +62,8 @@ final class KeyBackupSetupCoordinator: NSObject, KeyBackupSetupCoordinatorType {
|
||||
keyBackupSetupPassphraseCoordinator.start()
|
||||
|
||||
self.add(childCoordinator: keyBackupSetupPassphraseCoordinator)
|
||||
self.navigationRouter.push(keyBackupSetupPassphraseCoordinator, animated: animated) {
|
||||
self.remove(childCoordinator: keyBackupSetupPassphraseCoordinator)
|
||||
self.navigationRouter.push(keyBackupSetupPassphraseCoordinator, animated: animated) { [weak self] in
|
||||
self?.remove(childCoordinator: keyBackupSetupPassphraseCoordinator)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,8 +74,8 @@ final class KeyBackupSetupCoordinator: NSObject, KeyBackupSetupCoordinatorType {
|
||||
keyBackupSetupRecoveryKeyCoordinator.start()
|
||||
|
||||
self.add(childCoordinator: keyBackupSetupRecoveryKeyCoordinator)
|
||||
self.navigationRouter.push(keyBackupSetupRecoveryKeyCoordinator, animated: animated) {
|
||||
self.remove(childCoordinator: keyBackupSetupRecoveryKeyCoordinator)
|
||||
self.navigationRouter.push(keyBackupSetupRecoveryKeyCoordinator, animated: animated) { [weak self] in
|
||||
self?.remove(childCoordinator: keyBackupSetupRecoveryKeyCoordinator)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -187,7 +187,7 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
|
||||
self.confirmPassphraseTextField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged)
|
||||
self.confirmPassphraseAdditionalInfoView.isHidden = true
|
||||
|
||||
self.setPassphraseButton.titleLabel?.numberOfLines = 0
|
||||
self.setPassphraseButton.vc_enableMultiLinesTitle()
|
||||
self.setPassphraseButton.setTitle(VectorL10n.keyBackupSetupPassphraseSetPassphraseAction, for: .normal)
|
||||
|
||||
self.updateSetPassphraseButton()
|
||||
@@ -327,7 +327,7 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
|
||||
// self.passphraseTextField.isSecureTextEntry.toggle()
|
||||
}
|
||||
|
||||
@objc func textFieldDidChange(_ textField: UITextField) {
|
||||
@objc private func textFieldDidChange(_ textField: UITextField) {
|
||||
|
||||
if textField == self.passphraseTextField {
|
||||
self.viewModel.passphrase = textField.text
|
||||
|
||||
Reference in New Issue
Block a user