COVIDSafe code from version 1.2

This commit is contained in:
covidsafe-support 2020-05-15 00:47:40 -07:00
parent 3640e52eb2
commit cae9823e44
97 changed files with 1001 additions and 465 deletions

View file

@ -26,6 +26,8 @@ class RegistrationConsentViewController: UIViewController {
sender.isSelected = !sender.isSelected
self.agreeButton.isEnabled = sender.isSelected
updateContinueButton()
consentCheckBox.accessibilityLabel = sender.isSelected ? "I consent checkbox, checked" : "I consent checkbox, unchecked"
}
@IBAction func onBackTapped(_ sender: UIButton) {
@ -39,7 +41,7 @@ class RegistrationConsentViewController: UIViewController {
func updateContinueButton() {
if (agreeButton.isEnabled) {
agreeButton.backgroundColor = UIColor.covidSafeButtonColor
agreeButton.backgroundColor = UIColor.covidSafeButtonDarkerColor
} else {
agreeButton.backgroundColor = UIColor(0xDBDDDD)
}