diff options
author | 2021-08-02 13:46:06 +0530 | |
---|---|---|
committer | 2021-09-22 06:58:14 +0200 | |
commit | 73c708d9028e8dada52c69e45e02b9d2255adbec (patch) | |
tree | fd7a98c0ffe83efc742d89776063c0a3ba19e7b8 /Sources/WireGuardApp/UI/iOS/ViewController | |
parent | build: Include 'swiftlint' location in the PATH before invoking it (diff) | |
download | wireguard-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')
3 files changed, 3 insertions, 3 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)?) } diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift index 56a3447..a3647c3 100644 --- a/Sources/WireGuardApp/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift +++ b/Sources/WireGuardApp/UI/iOS/ViewController/SSIDOptionEditTableViewController.swift @@ -5,7 +5,7 @@ import UIKit import SystemConfiguration.CaptiveNetwork import NetworkExtension -protocol SSIDOptionEditTableViewControllerDelegate: class { +protocol SSIDOptionEditTableViewControllerDelegate: AnyObject { func ssidOptionSaved(option: ActivateOnDemandViewModel.OnDemandSSIDOption, ssids: [String]) } diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift index e619a8a..e4d94d3 100644 --- a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift +++ b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelEditTableViewController.swift @@ -3,7 +3,7 @@ import UIKit -protocol TunnelEditTableViewControllerDelegate: class { +protocol TunnelEditTableViewControllerDelegate: AnyObject { func tunnelSaved(tunnel: TunnelContainer) func tunnelEditingCancelled() } |