SwiftQRCodeScanner
SwiftQRCodeScanner copied to clipboard
Navigation Bar On QRCodeScannerController
is it possible to hide the navigation bar from the QR scanning screen?
@MuhammadHammad85 yes you can, in QRCodeScannerController go to viewDidLoad and remove bellow lines
let navigationBar = UINavigationBar(frame: CGRect(x: 0, y: 0, width: view.frame.size.width, height: 44))
navigationBar.shadowImage = UIImage()
view.addSubview(navigationBar)
let title = UINavigationItem(title: qrScannerConfiguration.title)
let cancelBarButton = UIBarButtonItem(title: qrScannerConfiguration.cancelButtonTitle,
style: .plain,
target: self,
action: #selector(dismissVC))
if let tintColor = qrScannerConfiguration.cancelButtonTintColor {
cancelBarButton.tintColor = tintColor
}
title.leftBarButtonItem = cancelBarButton
navigationBar.setItems([title], animated: false)
self.presentationController?.delegate = self
Added toggle navigation bar.