Skip to content

Commit

Permalink
Replace usage of protocol class to AnyObject
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinfasquel authored and tilltue committed Jan 8, 2022
1 parent a2f0b22 commit 0d0cbbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TLPhotoPicker/Classes/TLAlbumPopView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

protocol PopupViewProtocol: class {
protocol PopupViewProtocol: AnyObject {
var bgView: UIView! { get set }
var popupView: UIView! { get set }
var originalFrame: CGRect { get set }
Expand Down
2 changes: 1 addition & 1 deletion TLPhotoPicker/Classes/TLPhotoLibrary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import UIKit
import Photos

protocol TLPhotoLibraryDelegate: class {
protocol TLPhotoLibraryDelegate: AnyObject {
func loadCameraRollCollection(collection: TLAssetsCollection)
func loadCompleteAllCollection(collections: [TLAssetsCollection])
}
Expand Down
4 changes: 2 additions & 2 deletions TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Photos
import PhotosUI
import MobileCoreServices

public protocol TLPhotosPickerViewControllerDelegate: class {
public protocol TLPhotosPickerViewControllerDelegate: AnyObject {
func dismissPhotoPicker(withPHAssets: [PHAsset])
func dismissPhotoPicker(withTLPHAssets: [TLPHAsset])
func shouldDismissPhotoPicker(withTLPHAssets: [TLPHAsset]) -> Bool
Expand All @@ -37,7 +37,7 @@ extension TLPhotosPickerViewControllerDelegate {
}

//for log
public protocol TLPhotosPickerLogDelegate: class {
public protocol TLPhotosPickerLogDelegate: AnyObject {
func selectedCameraCell(picker: TLPhotosPickerViewController)
func deselectedPhoto(picker: TLPhotosPickerViewController, at: Int)
func selectedPhoto(picker: TLPhotosPickerViewController, at: Int)
Expand Down

0 comments on commit 0d0cbbd

Please sign in to comment.