diff --git a/Sources/AutoFill/OpenViewController.swift b/Sources/AutoFill/OpenViewController.swift index 01b738a..7215747 100644 --- a/Sources/AutoFill/OpenViewController.swift +++ b/Sources/AutoFill/OpenViewController.swift @@ -22,7 +22,7 @@ import MiKit import ExtensionKit import KeePassKit -protocol OpenViewControllerDelegate: class { +protocol OpenViewControllerDelegate: AnyObject { func openViewController(_ openViewController: OpenViewController, didSelect credential: Credential) diff --git a/Sources/ExtensionKit/Database/DatabasesViewController.swift b/Sources/ExtensionKit/Database/DatabasesViewController.swift index d46b090..5388002 100644 --- a/Sources/ExtensionKit/Database/DatabasesViewController.swift +++ b/Sources/ExtensionKit/Database/DatabasesViewController.swift @@ -20,7 +20,7 @@ import UIKit import Resources import MiKit -public protocol DatabasesViewControllerDelegate: class { +public protocol DatabasesViewControllerDelegate: AnyObject { func databasesViewController(_ databasesViewController: DatabasesViewController, didSelect database: Database) } diff --git a/Sources/ExtensionKit/ExtensionDelegate.swift b/Sources/ExtensionKit/ExtensionDelegate.swift index ce14af2..996d41c 100644 --- a/Sources/ExtensionKit/ExtensionDelegate.swift +++ b/Sources/ExtensionKit/ExtensionDelegate.swift @@ -19,7 +19,7 @@ import Foundation import KeePassKit -public protocol ExtensionDelegate: class { +public protocol ExtensionDelegate: AnyObject { var extensionContext: NSExtensionContext? { get } diff --git a/Sources/MiKee/Database/Create/CreateDatabaseViewController.swift b/Sources/MiKee/Database/Create/CreateDatabaseViewController.swift index 7574a3b..2034bbe 100644 --- a/Sources/MiKee/Database/Create/CreateDatabaseViewController.swift +++ b/Sources/MiKee/Database/Create/CreateDatabaseViewController.swift @@ -21,7 +21,7 @@ import Resources import KeePassKit import MiKit -protocol CreateDatabaseViewControllerDelegate: class { +protocol CreateDatabaseViewControllerDelegate: AnyObject { func createDatabaseViewController(_ createDatabaseViewController: CreateDatabaseViewController, didCreate database: Database, tree: KPKTree?) func createDatabaseViewControllerDidCancel(_ createDatabaseViewController: CreateDatabaseViewController) } diff --git a/Sources/MiKee/Database/DatabasesViewController.swift b/Sources/MiKee/Database/DatabasesViewController.swift index 7ae6bcb..c14cdba 100644 --- a/Sources/MiKee/Database/DatabasesViewController.swift +++ b/Sources/MiKee/Database/DatabasesViewController.swift @@ -21,7 +21,7 @@ import Resources import KeePassKit import MiKit -protocol DatabasesViewControllerDelegate: class { +protocol DatabasesViewControllerDelegate: AnyObject { func databasesViewController(_ databasesViewController: DatabasesViewController, didSelect database: Database) func databasesViewController(_ databasesViewController: DatabasesViewController, didRemove database: Database) } diff --git a/Sources/MiKee/Database/Key/KeysViewController.swift b/Sources/MiKee/Database/Key/KeysViewController.swift index d249526..d245416 100644 --- a/Sources/MiKee/Database/Key/KeysViewController.swift +++ b/Sources/MiKee/Database/Key/KeysViewController.swift @@ -28,7 +28,7 @@ import UIKit import Resources import MiKit -public protocol KeysViewControllerDelegate: class { +public protocol KeysViewControllerDelegate: AnyObject { func keysViewController(_ keysViewController: KeysViewController, didSelect key: Database.Key) func keysViewController(_ keysViewController: KeysViewController, didRemoveWith name: String) } diff --git a/Sources/MiKit/UI/ActionSheet/ActionSheet.swift b/Sources/MiKit/UI/ActionSheet/ActionSheet.swift index d896c26..60d9847 100644 --- a/Sources/MiKit/UI/ActionSheet/ActionSheet.swift +++ b/Sources/MiKit/UI/ActionSheet/ActionSheet.swift @@ -20,7 +20,7 @@ import UIKit import Resources import ObjectiveC -public protocol Action: class { +public protocol Action: AnyObject { var control: UIControl { get } diff --git a/Sources/MiKit/UI/Entry/Fields/FieldViewController.swift b/Sources/MiKit/UI/Entry/Fields/FieldViewController.swift index e2db5a8..2282d06 100644 --- a/Sources/MiKit/UI/Entry/Fields/FieldViewController.swift +++ b/Sources/MiKit/UI/Entry/Fields/FieldViewController.swift @@ -20,7 +20,7 @@ import UIKit import Resources import KeePassKit -protocol FieldViewControllerDelegate: class { +protocol FieldViewControllerDelegate: AnyObject { func fieldViewController(_ fieldViewController: FieldViewController, willUpdate attribute: KPKAttribute) func fieldViewController(_ fieldViewController: FieldViewController, didUpdate attribute: KPKAttribute) func fieldViewController(_ fieldViewController: FieldViewController, delete attribute: KPKAttribute) diff --git a/Sources/MiKit/UI/OTP/QRScannerController.swift b/Sources/MiKit/UI/OTP/QRScannerController.swift index 2fef1d5..775cb9a 100644 --- a/Sources/MiKit/UI/OTP/QRScannerController.swift +++ b/Sources/MiKit/UI/OTP/QRScannerController.swift @@ -20,7 +20,7 @@ import UIKit import Resources /// Delegate callback for the QRScannerView. -public protocol QRScannerControllerDelegate: class { +public protocol QRScannerControllerDelegate: AnyObject { func scanner(_ scanner: QRScannerController, didFind code: String) } diff --git a/Sources/MiKit/UI/OTP/QRScannerView.swift b/Sources/MiKit/UI/OTP/QRScannerView.swift index a1d454f..626506c 100644 --- a/Sources/MiKit/UI/OTP/QRScannerView.swift +++ b/Sources/MiKit/UI/OTP/QRScannerView.swift @@ -21,7 +21,7 @@ import UIKit import AVFoundation /// Delegate callback for the QRScannerView. -public protocol QRScannerViewDelegate: class { +public protocol QRScannerViewDelegate: AnyObject { func scanner(_ scanner: QRScannerView, DidFailWith error: Error) func scanner(_ scanner: QRScannerView, didFind code: String) }