I've found an issue with the setup involving objective-c with the swift library. Inside ImageScannerController.swift the init method is not being called when the scanner is called within Objective-C.
public required init() {
let scannerViewController = ScannerViewController()
super.init(rootViewController: scannerViewController)
navigationBar.tintColor = .black
navigationBar.isTranslucent = false
self.view.addSubview(blackFlashView)
setupConstraints()
}
I've found an issue with the setup involving objective-c with the swift library. Inside ImageScannerController.swift the init method is not being called when the scanner is called within Objective-C.
public required init() { let scannerViewController = ScannerViewController() super.init(rootViewController: scannerViewController) navigationBar.tintColor = .black navigationBar.isTranslucent = false self.view.addSubview(blackFlashView) setupConstraints() }
Must be added inside to get this to work.