Skip to content

Commit 7c06030

Browse files
Fix to replace 'class' keyword with 'AnyObject' (#157)
1 parent 6c4c886 commit 7c06030

7 files changed

+8
-8
lines changed

SwiftTweaks/StringOptionViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010
import UIKit
1111

12-
internal protocol StringOptionViewControllerDelegate: class {
12+
internal protocol StringOptionViewControllerDelegate: AnyObject {
1313
func stringOptionViewControllerDidPressDismissButton(_ tweakSelectionViewController: StringOptionViewController)
1414
}
1515

SwiftTweaks/TweakCollectionViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
internal protocol TweakCollectionViewControllerDelegate: class {
11+
internal protocol TweakCollectionViewControllerDelegate: AnyObject {
1212
func tweakCollectionViewControllerDidPressDismissButton(_ tweakCollectionViewController: TweakCollectionViewController)
1313
func tweakCollectionViewController(_ tweakCollectionViewController: TweakCollectionViewController, didTapFloatingTweakGroupButtonForTweakGroup tweakGroup: TweakGroup)
1414
}
@@ -224,7 +224,7 @@ extension TweakCollectionViewController: TweakGroupSectionHeaderDelegate {
224224
}
225225
}
226226

227-
private protocol TweakGroupSectionHeaderDelegate: class {
227+
private protocol TweakGroupSectionHeaderDelegate: AnyObject {
228228
func tweakGroupSectionHeaderDidPressFloatingButton(_ sectionHeader: TweakGroupSectionHeader)
229229
}
230230

SwiftTweaks/TweakColorCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
internal protocol TweakColorCellDelegate: class {
11+
internal protocol TweakColorCellDelegate: AnyObject {
1212
func tweakColorCellDidChangeValue(_ cell: TweakColorCell)
1313
}
1414

SwiftTweaks/TweakColorEditViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
internal protocol TweakColorEditViewControllerDelegate: class {
11+
internal protocol TweakColorEditViewControllerDelegate: AnyObject {
1212
func tweakColorEditViewControllerDidPressDismissButton(_ tweakColorEditViewController: TweakColorEditViewController)
1313
}
1414

SwiftTweaks/TweakTableCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import UIKit
1010
import Foundation
1111

12-
internal protocol TweakTableCellDelegate: class {
12+
internal protocol TweakTableCellDelegate: AnyObject {
1313
func tweakCellDidChangeCurrentValue(_ tweakCell: TweakTableCell)
1414
}
1515

SwiftTweaks/TweaksCollectionsListViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
internal protocol TweaksCollectionsListViewControllerDelegate: class {
11+
internal protocol TweaksCollectionsListViewControllerDelegate: AnyObject {
1212
func tweaksCollectionsListViewControllerDidTapDismissButton(_ tweaksCollectionsListViewController: TweaksCollectionsListViewController)
1313
func tweaksCollectionsListViewControllerDidTapShareButton(_ tweaksCollectionsListViewController: TweaksCollectionsListViewController, shareButton: UIBarButtonItem)
1414
func tweakCollectionListViewController(_ tweakCollectionViewController: TweaksCollectionsListViewController, didTapFloatingTweakGroupButtonForTweakGroup tweakGroup: TweakGroup)

SwiftTweaks/TweaksViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
public protocol TweaksViewControllerDelegate: class {
11+
public protocol TweaksViewControllerDelegate: AnyObject {
1212
func tweaksViewControllerRequestsDismiss(_ tweaksViewController: TweaksViewController, completion: (() -> ())?)
1313
}
1414

0 commit comments

Comments
 (0)