Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve warning "Using 'class' keyword for protocol inheritance #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/AutoFill/OpenViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import MiKit
import ExtensionKit
import KeePassKit

protocol OpenViewControllerDelegate: class {
protocol OpenViewControllerDelegate: AnyObject {

func openViewController(_ openViewController: OpenViewController, didSelect credential: Credential)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/ExtensionKit/ExtensionDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import Foundation
import KeePassKit

public protocol ExtensionDelegate: class {
public protocol ExtensionDelegate: AnyObject {

var extensionContext: NSExtensionContext? { get }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MiKee/Database/DatabasesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MiKee/Database/Key/KeysViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MiKit/UI/ActionSheet/ActionSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import UIKit
import Resources
import ObjectiveC

public protocol Action: class {
public protocol Action: AnyObject {

var control: UIControl { get }

Expand Down
2 changes: 1 addition & 1 deletion Sources/MiKit/UI/Entry/Fields/FieldViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MiKit/UI/OTP/QRScannerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/MiKit/UI/OTP/QRScannerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down