aboutsummaryrefslogtreecommitdiffstats
path: root/Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2021-08-02 13:46:06 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-22 06:58:14 +0200
commit73c708d9028e8dada52c69e45e02b9d2255adbec (patch)
treefd7a98c0ffe83efc742d89776063c0a3ba19e7b8 /Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift
parentbuild: Include 'swiftlint' location in the PATH before invoking it (diff)
downloadwireguard-apple-73c708d9028e8dada52c69e45e02b9d2255adbec.tar.xz
wireguard-apple-73c708d9028e8dada52c69e45e02b9d2255adbec.zip
build: Fix swift warnings
Use 'AnyObject' instead of 'class' to restrict protocol inheritance Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift')
-rw-r--r--Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift
index 601f7b8..4be0d67 100644
--- a/Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift
+++ b/Sources/WireGuardApp/UI/iOS/ViewController/QRScanViewController.swift
@@ -4,7 +4,7 @@
import AVFoundation
import UIKit
-protocol QRScanViewControllerDelegate: class {
+protocol QRScanViewControllerDelegate: AnyObject {
func addScannedQRCode(tunnelConfiguration: TunnelConfiguration, qrScanViewController: QRScanViewController, completionHandler: (() -> Void)?)
}