diff --git a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift index 4a8e378..ffd8598 100644 --- a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift +++ b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift @@ -150,16 +150,6 @@ open class BasePassCodeViewController: UIViewController, LegacyConfigurableContr } } - private func showBiometricsRequestIfNeeded() { - guard viewModel.isBiometricsEnabled && viewModel.controllerType == .enter else { - return - } - - viewModel.authenticateUsingBiometrics(with: biometricsAuthorizationHint, - fallback: biometricsFallbackButtonTitle, - cancel: biometricsCancelButtonTitle) - } - private func resetUI() { resetDotsUI() viewModel.reset() @@ -251,6 +241,17 @@ open class BasePassCodeViewController: UIViewController, LegacyConfigurableContr fakeTextField.resignFirstResponder() } + /// Show biometrics system UI if applicable + func showBiometricsRequestIfNeeded() { + guard viewModel.isBiometricsEnabled && viewModel.operationType == .enter else { + return + } + + viewModel.authenticateUsingBiometrics(with: biometricsAuthorizationHint, + fallback: biometricsFallbackButtonTitle, + cancel: biometricsCancelButtonTitle) + } + // MARK: - ConfigurableController open func bindViews() {