Skip to content

Commit

Permalink
make it so qr code view controller isnt dismissed after scanning, nee…
Browse files Browse the repository at this point in the history
…d to extensively test
  • Loading branch information
s0phialiu committed Feb 14, 2024
1 parent d25c95c commit 119141d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions HackIllinois/ViewControllers/HIScanQRCodeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ extension HIScanQRCodeViewController: AVCaptureMetadataOutputObjectsDelegate {
if alertTitle == "Success!" {
alert.addAction(
UIAlertAction(title: "OK", style: .default, handler: { _ in
self.dismiss(animated: true, completion: nil)
//self.dismiss(animated: true, completion: nil)
//Dismisses view controller
self.didSelectCloseButton(self.closeButton)
//self.didSelectCloseButton(self.closeButton)
NotificationCenter.default.post(name: .qrCodeSuccessfulScan, object: nil)
}))
} else {
Expand Down Expand Up @@ -372,6 +372,8 @@ extension HIScanQRCodeViewController: AVCaptureMetadataOutputObjectsDelegate {
} catch {
print(error, error.localizedDescription)
}
// Set respondingToQRCodeFound back to true
self.respondingToQRCodeFound = true
sleep(2)
}
.authorize(with: HIApplicationStateController.shared.user)
Expand Down

0 comments on commit 119141d

Please sign in to comment.