mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Change view state name
This commit is contained in:
@@ -190,8 +190,8 @@ final class EnterPinCodeViewController: UIViewController {
|
||||
switch viewState {
|
||||
case .choosePin:
|
||||
self.renderChoosePin()
|
||||
case .blockedPin:
|
||||
self.renderBlockedPin()
|
||||
case .notAllowedPin:
|
||||
self.renderNotAllowedPin()
|
||||
case .confirmPin:
|
||||
self.renderConfirmPin()
|
||||
case .pinsDontMatch:
|
||||
@@ -220,7 +220,7 @@ final class EnterPinCodeViewController: UIViewController {
|
||||
self.blockedPinView.isHidden = true
|
||||
}
|
||||
|
||||
private func renderBlockedPin() {
|
||||
private func renderNotAllowedPin() {
|
||||
self.inactiveView.isHidden = true
|
||||
self.mainStackView.isHidden = false
|
||||
self.logoImageView.isHidden = true
|
||||
|
||||
@@ -116,7 +116,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType {
|
||||
// check if this PIN is allowed
|
||||
if pinCodePreferences.notAllowedPINs.contains(currentPin) {
|
||||
viewMode = .notAllowedPin
|
||||
update(viewState: .blockedPin)
|
||||
update(viewState: .notAllowedPin)
|
||||
return
|
||||
}
|
||||
// go to next screen
|
||||
|
||||
@@ -21,7 +21,7 @@ import Foundation
|
||||
/// EnterPinCodeViewController view state
|
||||
enum EnterPinCodeViewState {
|
||||
case choosePin // creating pin for the first time, enter for first
|
||||
case blockedPin // creating pin for the first time, provided pin is blocked
|
||||
case notAllowedPin // creating pin for the first time, provided pin is not allowed
|
||||
case confirmPin // creating pin for the first time, confirm
|
||||
case pinsDontMatch // pins don't match
|
||||
case unlock // after pin has been set, enter pin to unlock
|
||||
|
||||
Reference in New Issue
Block a user