mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-08 09:42:47 +00:00
6cf4c49e21
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
18 lines
589 B
Swift
18 lines
589 B
Swift
//
|
|
// Copyright © 2018 WireGuard LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension AppCoordinator: QRScanViewControllerDelegate {
|
|
func didSave(tunnel: Tunnel, qrScanViewController: QRScanViewController) {
|
|
qrScanViewController.navigationController?.popViewController(animated: true)
|
|
showTunnelInfoViewController(tunnel: tunnel, context: tunnel.managedObjectContext!)
|
|
saveTunnel(tunnel)
|
|
}
|
|
|
|
func didCancel(qrScanViewController: QRScanViewController) {
|
|
qrScanViewController.navigationController?.popViewController(animated: true)
|
|
}
|
|
}
|