mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-06-05 12:05:18 +00:00
COVIDSafe code from version 2.9
This commit is contained in:
parent
166f0838ed
commit
ab7071cfd8
19 changed files with 953 additions and 796 deletions
|
@ -15,6 +15,7 @@ class UnderSixteenViewController: UIViewController, RegistrationHandler {
|
|||
public var reauthenticating: Bool = false
|
||||
|
||||
@IBOutlet weak var stepCounterLabel: UILabel!
|
||||
@IBOutlet weak var introLabel: UILabel!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
@ -23,6 +24,13 @@ class UnderSixteenViewController: UIViewController, RegistrationHandler {
|
|||
1,
|
||||
4
|
||||
)
|
||||
|
||||
guard let attributedString = introLabel.attributedText else {
|
||||
return
|
||||
}
|
||||
let mutableString = NSMutableAttributedString(attributedString: attributedString)
|
||||
mutableString.parseItalicTags()
|
||||
introLabel.attributedText = mutableString
|
||||
}
|
||||
|
||||
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
|
||||
|
@ -39,4 +47,11 @@ class UnderSixteenViewController: UIViewController, RegistrationHandler {
|
|||
performSegue(withIdentifier: "under16Consent", sender: nil)
|
||||
}
|
||||
|
||||
@IBAction func dontAgreeTapped(_ sender: Any) {
|
||||
let errorAlert = UIAlertController(title: "",
|
||||
message: "non_consent_popup".localizedString(),
|
||||
preferredStyle: .alert)
|
||||
errorAlert.addAction(UIAlertAction(title: "global_OK".localizedString(), style: .default))
|
||||
present(errorAlert, animated: true)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue