Skip to content

Commit

Permalink
Fix to replace 'class' keyword with 'AnyObject' (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutailang0119 authored Dec 2, 2021
1 parent 6c4c886 commit 7c06030
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion SwiftTweaks/StringOptionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import UIKit

internal protocol StringOptionViewControllerDelegate: class {
internal protocol StringOptionViewControllerDelegate: AnyObject {
func stringOptionViewControllerDidPressDismissButton(_ tweakSelectionViewController: StringOptionViewController)
}

Expand Down
4 changes: 2 additions & 2 deletions SwiftTweaks/TweakCollectionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -224,7 +224,7 @@ extension TweakCollectionViewController: TweakGroupSectionHeaderDelegate {
}
}

private protocol TweakGroupSectionHeaderDelegate: class {
private protocol TweakGroupSectionHeaderDelegate: AnyObject {
func tweakGroupSectionHeaderDidPressFloatingButton(_ sectionHeader: TweakGroupSectionHeader)
}

Expand Down
2 changes: 1 addition & 1 deletion SwiftTweaks/TweakColorCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

internal protocol TweakColorCellDelegate: class {
internal protocol TweakColorCellDelegate: AnyObject {
func tweakColorCellDidChangeValue(_ cell: TweakColorCell)
}

Expand Down
2 changes: 1 addition & 1 deletion SwiftTweaks/TweakColorEditViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

internal protocol TweakColorEditViewControllerDelegate: class {
internal protocol TweakColorEditViewControllerDelegate: AnyObject {
func tweakColorEditViewControllerDidPressDismissButton(_ tweakColorEditViewController: TweakColorEditViewController)
}

Expand Down
2 changes: 1 addition & 1 deletion SwiftTweaks/TweakTableCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import UIKit
import Foundation

internal protocol TweakTableCellDelegate: class {
internal protocol TweakTableCellDelegate: AnyObject {
func tweakCellDidChangeCurrentValue(_ tweakCell: TweakTableCell)
}

Expand Down
2 changes: 1 addition & 1 deletion SwiftTweaks/TweaksCollectionsListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion SwiftTweaks/TweaksViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

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

Expand Down

0 comments on commit 7c06030

Please sign in to comment.