mobile-ios/CovidSafe/RestrictionsViewController.swift

39 lines
1.2 KiB
Swift
Raw Permalink Normal View History

2021-02-26 03:41:20 +00:00
//
// 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)
}
}