Skip to content

Commit

Permalink
fix warning: use 'AnyObject' instead 'class' (#120)
Browse files Browse the repository at this point in the history
Co-authored-by: huanghui1998hhh <465040840@qq.com>
  • Loading branch information
huanghui1998hhh and huanghui1998hhh authored Jul 8, 2021
1 parent b8a1331 commit f69682f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/ImagePicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

public protocol ImagePickerDelegate: class {
public protocol ImagePickerDelegate: AnyObject {
func didSelect(image: UIImage?)
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Mantis/CropView/CropView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import UIKit

protocol CropViewDelegate: class {
protocol CropViewDelegate: AnyObject {
func cropViewDidBecomeResettable(_ cropView: CropView)
func cropViewDidBecomeUnResettable(_ cropView: CropView)
func cropViewDidBeginResize(_ cropView: CropView)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

public protocol CropToolbarDelegate: class {
public protocol CropToolbarDelegate: AnyObject {
func didSelectCancel()
func didSelectCrop()
func didSelectCounterClockwiseRotate()
Expand Down
2 changes: 1 addition & 1 deletion Sources/Mantis/CropViewController/CropViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import UIKit

public protocol CropViewControllerDelegate: class {
public protocol CropViewControllerDelegate: AnyObject {
func cropViewControllerDidCrop(_ cropViewController: CropViewController,
cropped: UIImage, transformation: Transformation)
func cropViewControllerDidFailToCrop(_ cropViewController: CropViewController, original: UIImage)
Expand Down

0 comments on commit f69682f

Please sign in to comment.