Skip to content

Commit

Permalink
fix: change code to use debug for original
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsuhiro Muroyama committed Aug 10, 2023
1 parent 3ab294f commit 2e7ecad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ final class QRReaderViewController: UIViewController {

extension QRReaderViewController: QRScannerViewDelegate {
func qrScannerView(_ qrScannerView: QRScannerView, didFailure error: QRScannerError) {
print(error)
let alert = UIAlertController(title: "エラー", message: "このQRコードは無効です", preferredStyle: .alert)
alert.addAction(.init(title: "OK", style: .default))
self.present(alert, animated: true)
Expand Down
3 changes: 1 addition & 2 deletions DJSystemiOS/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {

let window = UIWindow(windowScene: windowScene)
// MARK: 自分が実装してる画面に書き換えてね
// window.rootViewController = UINavigationController(rootViewController: SearchRoomViewController(roomAPI: Room.API(), router: SearchRoomRouter()))
window.rootViewController = UINavigationController(rootViewController: QRReaderViewController())
window.rootViewController = UINavigationController(rootViewController: SearchRoomViewController(roomAPI: Room.API(), router: SearchRoomRouter()))
self.window = window
self.window?.makeKeyAndVisible()
}
Expand Down

0 comments on commit 2e7ecad

Please sign in to comment.