COVIDSafe code from version 1.14 (#27)

This commit is contained in:
COVIDSafe Support 2020-11-09 16:51:00 -08:00 committed by GitHub
parent 3ea83834f5
commit cf93ea43c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 370 additions and 141 deletions

View file

@ -78,19 +78,10 @@ class PhoneNumberViewController: UIViewController, UITextFieldDelegate, Registra
initialTextFieldBorderColour = phoneNumberField.borderColor
navigationController?.view.backgroundColor = UIColor.white
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
)
}
stepCounterLabel.text = String.localizedStringWithFormat( "stepCounter".localizedString(),
2,
UserDefaults.standard.bool(forKey: "allowedPermissions") ? 3 : 4
)
}
@IBAction func onBackTapped(_ sender: UIButton) {
@ -160,7 +151,7 @@ class PhoneNumberViewController: UIViewController, UITextFieldDelegate, Registra
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let vc = segue.destination as? OTPViewController {
if var vc = segue.destination as? RegistrationHandler {
vc.reauthenticating = self.reauthenticating
vc.registrationInfo = self.registrationInfo
}