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

@ -25,6 +25,7 @@ final class UploadDataHomeViewController: 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) {
@ -33,7 +34,7 @@ final class UploadDataHomeViewController: UIViewController {
func updateContinueButton() {
if (agreeButton.isEnabled) {
agreeButton.backgroundColor = UIColor.covidSafeButtonColor
agreeButton.backgroundColor = UIColor.covidSafeButtonDarkerColor
} else {
agreeButton.backgroundColor = UIColor(0xDBDDDD)
}