mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-18 06:19:04 +00:00
Revert "QR code: QR code scanning is not available in the simulator"
This reverts commit 9729386406
.
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
193b8c2596
commit
95ad752d65
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user