Change view mode name

This commit is contained in:
ismailgulek
2020-09-17 15:57:06 +03:00
parent 8936c4e92e
commit ead4ba4092
3 changed files with 5 additions and 5 deletions
@@ -86,7 +86,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
currentPin.removeLast()
// switch to setPin if blocked
if viewMode == .blockedPin {
if viewMode == .notAllowedPin {
// clear error UI
update(viewState: .choosePin)
// switch to normal flow
@@ -97,7 +97,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
// a digit tapped
// switch to setPin if blocked
if viewMode == .blockedPin {
if viewMode == .notAllowedPin {
// clear old pin first
currentPin.removeAll()
// clear error UI
@@ -115,7 +115,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
if firstPin.isEmpty {
// check if this PIN is allowed
if pinCodePreferences.notAllowedPINs.contains(currentPin) {
viewMode = .blockedPin
viewMode = .notAllowedPin
update(viewState: .blockedPin)
return
}
@@ -58,7 +58,7 @@ final class SetPinCoordinator: SetPinCoordinatorType {
} else {
return createEnterPinCodeCoordinator()
}
case .setPin, .blockedPin, .confirmPinToDeactivate:
case .setPin, .notAllowedPin, .confirmPinToDeactivate:
return createEnterPinCodeCoordinator()
case .setupBiometricsAfterLogin, .setupBiometricsFromSettings, .confirmBiometricsToDeactivate:
return createSetupBiometricsCoordinator()
@@ -20,7 +20,7 @@ import Foundation
@objc enum SetPinCoordinatorViewMode: Int {
case setPin
case blockedPin
case notAllowedPin
case unlock
case confirmPinToDeactivate
case setupBiometricsAfterLogin