From b37ced26177d432f45b27488b565fa0fcca41118 Mon Sep 17 00:00:00 2001 From: Knot Date: Sat, 14 Aug 2021 13:59:53 +0700 Subject: [PATCH] Using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead --- Pod/Classes/Initializable.swift | 2 +- Pod/Classes/SideMenuAnimationController.swift | 2 +- Pod/Classes/SideMenuNavigationController.swift | 2 +- Pod/Classes/SideMenuPresentationController.swift | 2 +- Pod/Classes/SideMenuTransitionController.swift | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Pod/Classes/Initializable.swift b/Pod/Classes/Initializable.swift index 5673e330..0dc0bbac 100644 --- a/Pod/Classes/Initializable.swift +++ b/Pod/Classes/Initializable.swift @@ -7,7 +7,7 @@ import Foundation -internal protocol InitializableClass: class { +internal protocol InitializableClass: AnyObject { init() } diff --git a/Pod/Classes/SideMenuAnimationController.swift b/Pod/Classes/SideMenuAnimationController.swift index aa6ff8d3..993ab80d 100644 --- a/Pod/Classes/SideMenuAnimationController.swift +++ b/Pod/Classes/SideMenuAnimationController.swift @@ -22,7 +22,7 @@ internal protocol AnimationModel { var usingSpringWithDamping: CGFloat { get } } -internal protocol SideMenuAnimationControllerDelegate: class { +internal protocol SideMenuAnimationControllerDelegate: AnyObject { func sideMenuAnimationController(_ animationController: SideMenuAnimationController, didDismiss viewController: UIViewController) func sideMenuAnimationController(_ animationController: SideMenuAnimationController, didPresent viewController: UIViewController) } diff --git a/Pod/Classes/SideMenuNavigationController.swift b/Pod/Classes/SideMenuNavigationController.swift index d88bb8b6..20db1928 100644 --- a/Pod/Classes/SideMenuNavigationController.swift +++ b/Pod/Classes/SideMenuNavigationController.swift @@ -69,7 +69,7 @@ internal protocol MenuModel { @objc optional func sideMenuDidDisappear(menu: SideMenuNavigationController, animated: Bool) } -internal protocol SideMenuNavigationControllerTransitionDelegate: class { +internal protocol SideMenuNavigationControllerTransitionDelegate: AnyObject { func sideMenuTransitionDidDismiss(menu: Menu) } diff --git a/Pod/Classes/SideMenuPresentationController.swift b/Pod/Classes/SideMenuPresentationController.swift index 5fc8a870..c35bece7 100644 --- a/Pod/Classes/SideMenuPresentationController.swift +++ b/Pod/Classes/SideMenuPresentationController.swift @@ -20,7 +20,7 @@ internal protocol PresentationModel { var menuWidth: CGFloat { get } } -internal protocol SideMenuPresentationControllerDelegate: class { +internal protocol SideMenuPresentationControllerDelegate: AnyObject { func sideMenuPresentationControllerDidTap(_ presentationController: SideMenuPresentationController) func sideMenuPresentationController(_ presentationController: SideMenuPresentationController, didPanWith gesture: UIPanGestureRecognizer) } diff --git a/Pod/Classes/SideMenuTransitionController.swift b/Pod/Classes/SideMenuTransitionController.swift index e8cc8e2c..191a3f2f 100644 --- a/Pod/Classes/SideMenuTransitionController.swift +++ b/Pod/Classes/SideMenuTransitionController.swift @@ -8,7 +8,7 @@ import UIKit -internal protocol SideMenuTransitionControllerDelegate: class { +internal protocol SideMenuTransitionControllerDelegate: AnyObject { func sideMenuTransitionController(_ transitionController: SideMenuTransitionController, didDismiss viewController: UIViewController) func sideMenuTransitionController(_ transitionController: SideMenuTransitionController, didPresent viewController: UIViewController) }