mobile-ios/CovidSafe/RegistrationConsentViewController.swift

34 lines
949 B
Swift
Raw Normal View History

2020-05-08 07:49:14 +00:00
//
// RegistrationConsentViewController.swift
// CovidSafe
//
// Copyright © 2020 Australian Government. All rights reserved.
//
import UIKit
class RegistrationConsentViewController: UIViewController {
2021-12-10 08:05:42 +00:00
@IBOutlet weak var introLabel: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
guard let attributedString = introLabel.attributedText else {
return
}
let mutableString = NSMutableAttributedString(attributedString: attributedString)
mutableString.parseItalicTags()
introLabel.attributedText = mutableString
}
2020-05-08 07:49:14 +00:00
@IBAction func onBackTapped(_ sender: UIButton) {
self.navigationController?.popViewController(animated: true)
}
@IBAction func onAgreeTapped(sender: UIButton) {
UserDefaults.standard.set(true, forKey: "hasConsented")
performSegue(withIdentifier: "iConsentSegue", sender: nil)
}
}