Implement biometrics module

This commit is contained in:
ismailgulek
2020-07-24 17:53:23 +03:00
parent b868a8fd00
commit 0df45f399c
16 changed files with 830 additions and 23 deletions

View File

@@ -109,7 +109,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
update(viewState: .pinsDontMatch)
}
}
case .unlockByPin, .confirmPinToDeactivate:
case .unlock, .confirmPinToDeactivate:
// unlocking
if currentPin != pinCodePreferences.pin {
// no match
@@ -131,6 +131,8 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
self.coordinatorDelegate?.enterPinCodeViewModelDidComplete(self)
}
}
default:
break
}
return
}
@@ -141,10 +143,12 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
switch viewMode {
case .setPin:
update(viewState: .choosePin)
case .unlockByPin:
update(viewState: .unlockByPin)
case .unlock:
update(viewState: .unlock)
case .confirmPinToDeactivate:
update(viewState: .confirmPinToDisable)
default:
break
}
}