mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 21:15:21 +00:00
COVIDSafe code from version 1.1
This commit is contained in:
commit
3640e52eb2
330 changed files with 261540 additions and 0 deletions
30
CovidSafe/Question3ViewController.swift
Normal file
30
CovidSafe/Question3ViewController.swift
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright © 2020 Australian Government All rights reserved.
|
||||
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
class Question3ViewController: UIViewController {
|
||||
|
||||
@IBOutlet var messageTextView: UITextView!
|
||||
@IBOutlet var noButton: UIButton!
|
||||
@IBOutlet var yesButton: UIButton!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
setupMessageTextView()
|
||||
setupButtons()
|
||||
}
|
||||
|
||||
private func setupButtons() {
|
||||
noButton.setTitleColor(.white, for: .highlighted)
|
||||
noButton.setBackgroundImage(UIColor.covidSafeColor.asSolidBackgroundImage, for: .highlighted)
|
||||
|
||||
yesButton.setTitleColor(.white, for: .highlighted)
|
||||
yesButton.setBackgroundImage(UIColor.covidSafeColor.asSolidBackgroundImage, for: .highlighted)
|
||||
}
|
||||
|
||||
private func setupMessageTextView() {
|
||||
messageTextView.textContainer.lineFragmentPadding = 0.0
|
||||
messageTextView.addLink("https://www.australia.gov.au", enclosedIn: "*")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue