mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-05 06:14:59 +00:00
25 lines
1,008 B
Swift
25 lines
1,008 B
Swift
// 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
|
|
}
|
|
}
|