From fd85f2002c85fbce2295afd2c0d2f031830fcbf0 Mon Sep 17 00:00:00 2001 From: svojsu Date: Fri, 9 Aug 2024 15:40:39 +0300 Subject: [PATCH] focus on textfield if password flow is in confirm state --- .../NewBackup/CloudBackupCreateViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/novawallet/Modules/CloudBackup/CloudBackupCreate/NewBackup/CloudBackupCreateViewController.swift b/novawallet/Modules/CloudBackup/CloudBackupCreate/NewBackup/CloudBackupCreateViewController.swift index f7c06e1ba..f720a38da 100644 --- a/novawallet/Modules/CloudBackup/CloudBackupCreate/NewBackup/CloudBackupCreateViewController.swift +++ b/novawallet/Modules/CloudBackup/CloudBackupCreate/NewBackup/CloudBackupCreateViewController.swift @@ -42,6 +42,7 @@ final class CloudBackupCreateViewController: UIViewController, ViewHolder { super.viewDidAppear(animated) presenter.activateOnAppear() + preparePasswordView() } private func setupHandlers() { @@ -105,6 +106,11 @@ final class CloudBackupCreateViewController: UIViewController, ViewHolder { rootView.passwordView.textField.attributedPlaceholder = passwordPlaceholder } + func preparePasswordView() { + guard flow == .confirmPassword else { return } + rootView.passwordView.textField.becomeFirstResponder() + } + @objc func actionContinue() { presenter.activateContinue() }