From: Roopesh Chander Date: Wed, 31 Oct 2018 20:35:03 +0000 (+0530) Subject: Revert "QR code: QR code scanning is not available in the simulator" X-Git-Tag: 0.0.20181104-1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95ad752d653d13018dd62b7e59a7be1df5bcbd69;p=thirdparty%2Fwireguard-apple.git Revert "QR code: QR code scanning is not available in the simulator" This reverts commit 9729386406cd9543303a68e51d57b286880bb8cd. Signed-off-by: Roopesh Chander --- 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) {