Skip to content

Commit

Permalink
fix: Fix not re-initializing issue
Browse files Browse the repository at this point in the history
Fixed not re-initializing issue when coming back to the scanner view
  • Loading branch information
aaronlab committed Nov 16, 2020
1 parent 814e777 commit 6a589eb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ open class CreditCardScannerViewController: UIViewController {
fatalError("Not implemented")
}

override open func viewDidLoad() {
super.viewDidLoad()
override open func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.analyzer = ImageAnalyzer(delegate: self)
layoutSubviews()
AVCaptureDevice.authorize { [weak self] authoriazed in
// This is on the main thread.
Expand Down

0 comments on commit 6a589eb

Please sign in to comment.