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
25
CovidSafe/UploadDataNavigationController.swift
Normal file
25
CovidSafe/UploadDataNavigationController.swift
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright © 2020 Australian Government All rights reserved.
|
||||
|
||||
import UIKit
|
||||
|
||||
final class UploadDataNavigationController: UINavigationController {
|
||||
|
||||
let emptyTextBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
delegate = self
|
||||
view.tintColor = UIColor.covidSafeColor
|
||||
navigationBar.backIndicatorImage = UIImage(named: "arrow-left")
|
||||
navigationBar.backIndicatorTransitionMaskImage = UIImage(named: "arrow-left")
|
||||
navigationBar.barTintColor = .white
|
||||
navigationBar.shadowImage = UIImage()
|
||||
setNavigationBarHidden(true, animated: false)
|
||||
}
|
||||
}
|
||||
|
||||
extension UploadDataNavigationController: UINavigationControllerDelegate {
|
||||
func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
|
||||
viewController.navigationItem.backBarButtonItem = emptyTextBarButtonItem
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue