diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-01 02:05:03 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-01 11:45:44 +0530 |
commit | 95ad752d653d13018dd62b7e59a7be1df5bcbd69 (patch) | |
tree | 11d38ac241a6c4cfdf0f0ce6c903e0c2baca9159 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | |
parent | Importing: Show error when the zip file contains no .conf files (diff) | |
download | wireguard-apple-95ad752d653d13018dd62b7e59a7be1df5bcbd69.tar.xz wireguard-apple-95ad752d653d13018dd62b7e59a7be1df5bcbd69.zip |
Revert "QR code: QR code scanning is not available in the simulator"
This reverts commit 9729386406cd9543303a68e51d57b286880bb8cd.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index 1b65854..1d87b27 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -113,17 +113,11 @@ class TunnelsListTableViewController: UITableViewController { } func presentViewControllerForScanningQRCode() { - #if targetEnvironment(simulator) - print("Scanning QR code is unavailable in the simulator") - #else - let scanQRCodeVC = QRScanViewController() scanQRCodeVC.delegate = self let scanQRCodeNC = UINavigationController(rootViewController: scanQRCodeVC) scanQRCodeNC.modalPresentationStyle = .fullScreen self.present(scanQRCodeNC, animated: true) - - #endif } func showErrorAlert(title: String, message: String) { |