From 0d0cbbd2d20ed5fd36e5f4052209f5e2d9aaa8b7 Mon Sep 17 00:00:00 2001 From: Quentin Fasquel Date: Mon, 3 Jan 2022 15:15:02 +0100 Subject: [PATCH] Replace usage of protocol class to AnyObject --- TLPhotoPicker/Classes/TLAlbumPopView.swift | 2 +- TLPhotoPicker/Classes/TLPhotoLibrary.swift | 2 +- TLPhotoPicker/Classes/TLPhotosPickerViewController.swift | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TLPhotoPicker/Classes/TLAlbumPopView.swift b/TLPhotoPicker/Classes/TLAlbumPopView.swift index b0ff5341..3eaa92a3 100644 --- a/TLPhotoPicker/Classes/TLAlbumPopView.swift +++ b/TLPhotoPicker/Classes/TLAlbumPopView.swift @@ -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 } diff --git a/TLPhotoPicker/Classes/TLPhotoLibrary.swift b/TLPhotoPicker/Classes/TLPhotoLibrary.swift index f3026e0c..cfba4859 100644 --- a/TLPhotoPicker/Classes/TLPhotoLibrary.swift +++ b/TLPhotoPicker/Classes/TLPhotoLibrary.swift @@ -9,7 +9,7 @@ import UIKit import Photos -protocol TLPhotoLibraryDelegate: class { +protocol TLPhotoLibraryDelegate: AnyObject { func loadCameraRollCollection(collection: TLAssetsCollection) func loadCompleteAllCollection(collections: [TLAssetsCollection]) } diff --git a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift index 14a6e7a2..1b0211e4 100644 --- a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift +++ b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift @@ -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 @@ -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)