From 7c06030f1db8acce3b641218ff16feab7ff20e2f Mon Sep 17 00:00:00 2001 From: Yutaro Muta Date: Fri, 3 Dec 2021 01:19:11 +0900 Subject: [PATCH] Fix to replace 'class' keyword with 'AnyObject' (#157) --- SwiftTweaks/StringOptionViewController.swift | 2 +- SwiftTweaks/TweakCollectionViewController.swift | 4 ++-- SwiftTweaks/TweakColorCell.swift | 2 +- SwiftTweaks/TweakColorEditViewController.swift | 2 +- SwiftTweaks/TweakTableCell.swift | 2 +- SwiftTweaks/TweaksCollectionsListViewController.swift | 2 +- SwiftTweaks/TweaksViewController.swift | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SwiftTweaks/StringOptionViewController.swift b/SwiftTweaks/StringOptionViewController.swift index 6a3dc37..4931e65 100644 --- a/SwiftTweaks/StringOptionViewController.swift +++ b/SwiftTweaks/StringOptionViewController.swift @@ -9,7 +9,7 @@ import Foundation import UIKit -internal protocol StringOptionViewControllerDelegate: class { +internal protocol StringOptionViewControllerDelegate: AnyObject { func stringOptionViewControllerDidPressDismissButton(_ tweakSelectionViewController: StringOptionViewController) } diff --git a/SwiftTweaks/TweakCollectionViewController.swift b/SwiftTweaks/TweakCollectionViewController.swift index 1e274d3..c46ae5e 100644 --- a/SwiftTweaks/TweakCollectionViewController.swift +++ b/SwiftTweaks/TweakCollectionViewController.swift @@ -8,7 +8,7 @@ import UIKit -internal protocol TweakCollectionViewControllerDelegate: class { +internal protocol TweakCollectionViewControllerDelegate: AnyObject { func tweakCollectionViewControllerDidPressDismissButton(_ tweakCollectionViewController: TweakCollectionViewController) func tweakCollectionViewController(_ tweakCollectionViewController: TweakCollectionViewController, didTapFloatingTweakGroupButtonForTweakGroup tweakGroup: TweakGroup) } @@ -224,7 +224,7 @@ extension TweakCollectionViewController: TweakGroupSectionHeaderDelegate { } } -private protocol TweakGroupSectionHeaderDelegate: class { +private protocol TweakGroupSectionHeaderDelegate: AnyObject { func tweakGroupSectionHeaderDidPressFloatingButton(_ sectionHeader: TweakGroupSectionHeader) } diff --git a/SwiftTweaks/TweakColorCell.swift b/SwiftTweaks/TweakColorCell.swift index 2442289..29c3172 100644 --- a/SwiftTweaks/TweakColorCell.swift +++ b/SwiftTweaks/TweakColorCell.swift @@ -8,7 +8,7 @@ import UIKit -internal protocol TweakColorCellDelegate: class { +internal protocol TweakColorCellDelegate: AnyObject { func tweakColorCellDidChangeValue(_ cell: TweakColorCell) } diff --git a/SwiftTweaks/TweakColorEditViewController.swift b/SwiftTweaks/TweakColorEditViewController.swift index 1c896bb..aa35052 100644 --- a/SwiftTweaks/TweakColorEditViewController.swift +++ b/SwiftTweaks/TweakColorEditViewController.swift @@ -8,7 +8,7 @@ import UIKit -internal protocol TweakColorEditViewControllerDelegate: class { +internal protocol TweakColorEditViewControllerDelegate: AnyObject { func tweakColorEditViewControllerDidPressDismissButton(_ tweakColorEditViewController: TweakColorEditViewController) } diff --git a/SwiftTweaks/TweakTableCell.swift b/SwiftTweaks/TweakTableCell.swift index 9a930d6..bc8ab61 100644 --- a/SwiftTweaks/TweakTableCell.swift +++ b/SwiftTweaks/TweakTableCell.swift @@ -9,7 +9,7 @@ import UIKit import Foundation -internal protocol TweakTableCellDelegate: class { +internal protocol TweakTableCellDelegate: AnyObject { func tweakCellDidChangeCurrentValue(_ tweakCell: TweakTableCell) } diff --git a/SwiftTweaks/TweaksCollectionsListViewController.swift b/SwiftTweaks/TweaksCollectionsListViewController.swift index a651f07..29f249f 100644 --- a/SwiftTweaks/TweaksCollectionsListViewController.swift +++ b/SwiftTweaks/TweaksCollectionsListViewController.swift @@ -8,7 +8,7 @@ import UIKit -internal protocol TweaksCollectionsListViewControllerDelegate: class { +internal protocol TweaksCollectionsListViewControllerDelegate: AnyObject { func tweaksCollectionsListViewControllerDidTapDismissButton(_ tweaksCollectionsListViewController: TweaksCollectionsListViewController) func tweaksCollectionsListViewControllerDidTapShareButton(_ tweaksCollectionsListViewController: TweaksCollectionsListViewController, shareButton: UIBarButtonItem) func tweakCollectionListViewController(_ tweakCollectionViewController: TweaksCollectionsListViewController, didTapFloatingTweakGroupButtonForTweakGroup tweakGroup: TweakGroup) diff --git a/SwiftTweaks/TweaksViewController.swift b/SwiftTweaks/TweaksViewController.swift index 1fe0c00..77313e7 100644 --- a/SwiftTweaks/TweaksViewController.swift +++ b/SwiftTweaks/TweaksViewController.swift @@ -8,7 +8,7 @@ import UIKit -public protocol TweaksViewControllerDelegate: class { +public protocol TweaksViewControllerDelegate: AnyObject { func tweaksViewControllerRequestsDismiss(_ tweaksViewController: TweaksViewController, completion: (() -> ())?) }