COVIDSafe code from version 2.7 (#52)

This commit is contained in:
COVIDSafe Support 2021-06-09 17:27:37 -07:00 committed by GitHub
parent 4d98b6c5e4
commit 30df30dacc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 443 additions and 423 deletions

View file

@ -12,6 +12,7 @@ class PhoneNumberViewController: UIViewController, UITextFieldDelegate, Registra
@IBOutlet weak var phoneExample: UILabel!
@IBOutlet weak var phoneError: UILabel!
@IBOutlet weak var phoneLabel: UILabel!
@IBOutlet weak var overseasWarningLabel: UILabel!
@IBOutlet weak var stepCounterLabel: UILabel!
@IBOutlet weak var backButton: UIButton!
var countryFlagContainerView: UIView!
@ -222,10 +223,15 @@ class PhoneNumberViewController: UIViewController, UITextFieldDelegate, Registra
}
countryCodeField.text = "(+\(countryPhoneCode)) \(countryName)"
countryCodeField.accessibilityValue = String.init(format: "SelectedCountryTemplate".localizedString(), countryPhoneCode, countryName)
if selectedCountry?.isoCode == "AU2" {
if selectedCountry?.isoCode == "AU" {
phoneExample.isHidden = true
overseasWarningLabel.isHidden = true
} else if selectedCountry?.isoCode == "AU2" {
phoneExample.isHidden = false
overseasWarningLabel.isHidden = true
} else {
phoneExample.isHidden = true
overseasWarningLabel.isHidden = false
}
validatePhoneNumber()
}