COVIDSafe code from version 1.13 ()

This commit is contained in:
COVIDSafe Support 2020-10-16 15:45:07 +11:00 committed by GitHub
parent a2b6a8bfb5
commit 3ea83834f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 970 additions and 576 deletions

View file

@ -13,6 +13,7 @@ class PhoneNumberViewController: UIViewController, UITextFieldDelegate, Registra
@IBOutlet weak var phoneError: UILabel!
@IBOutlet weak var phoneLabel: UILabel!
@IBOutlet weak var stepCounterLabel: UILabel!
@IBOutlet weak var backButton: UIButton!
var countryFlagContainerView: UIView!
var flagImageView: UIImageView!
@ -77,10 +78,19 @@ class PhoneNumberViewController: UIViewController, UITextFieldDelegate, Registra
initialTextFieldBorderColour = phoneNumberField.borderColor
navigationController?.view.backgroundColor = UIColor.white
stepCounterLabel.text = String.localizedStringWithFormat( "stepCounter".localizedString(),
2,
UserDefaults.standard.bool(forKey: "allowedPermissions") ? 3 : 4
)
if reauthenticating {
backButton.isHidden = true
registrationInfo = RegistrationRequest(fullName: "", postcode: "", age: 20, isMinor: false, phoneNumber: "")
stepCounterLabel.text = String.localizedStringWithFormat( "stepCounter".localizedString(),
1,
2
)
} else {
stepCounterLabel.text = String.localizedStringWithFormat( "stepCounter".localizedString(),
2,
UserDefaults.standard.bool(forKey: "allowedPermissions") ? 3 : 4
)
}
}
@IBAction func onBackTapped(_ sender: UIButton) {