mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 04:55:19 +00:00
COVIDSafe code from version 2.3
This commit is contained in:
parent
f14aa60482
commit
e577a9e7aa
63 changed files with 3096 additions and 372 deletions
38
CovidSafe/RestrictionsViewController.swift
Normal file
38
CovidSafe/RestrictionsViewController.swift
Normal file
|
@ -0,0 +1,38 @@
|
|||
//
|
||||
// RestrictionsViewController.swift
|
||||
// CovidSafe
|
||||
//
|
||||
// Copyright © 2021 Australian Government. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class RestrictionsViewController: CovidHeaderContentViewController {
|
||||
|
||||
let restrictionsTableViewController: RestrictionTableViewController = RestrictionTableViewController(nibName: "RestrictionTableView", bundle: nil)
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
super.init(coder: coder)
|
||||
}
|
||||
|
||||
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
|
||||
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
|
||||
|
||||
tabBarItem.title = "restrictions_heading".localizedString()
|
||||
tabBarItem.image = UIImage(named: "unlock")
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
titleLabel.text = "restrictions_heading".localizedString()
|
||||
|
||||
setupContentView(contentView: restrictionsTableViewController.view)
|
||||
}
|
||||
|
||||
override func setupContentView(contentView: UIView) {
|
||||
addChild(restrictionsTableViewController)
|
||||
super.setupContentView(contentView: contentView)
|
||||
restrictionsTableViewController.didMove(toParent: self)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue