From b7166be79fd22fff3bd747a10780f70e80eaca24 Mon Sep 17 00:00:00 2001 From: novr Date: Wed, 21 Dec 2022 10:38:42 +0900 Subject: [PATCH] fix: 'class' keyword to define a class-constrained protocol is deprecated --- Source/Library/LayoutConfigurable.swift | 2 +- Source/Views/FooterView.swift | 2 +- Source/Views/HeaderView.swift | 2 +- Source/Views/InfoLabel.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Library/LayoutConfigurable.swift b/Source/Library/LayoutConfigurable.swift index 2b54fd74..c68c42a6 100644 --- a/Source/Library/LayoutConfigurable.swift +++ b/Source/Library/LayoutConfigurable.swift @@ -1,4 +1,4 @@ -protocol LayoutConfigurable: class { +protocol LayoutConfigurable: AnyObject { func configureLayout() } diff --git a/Source/Views/FooterView.swift b/Source/Views/FooterView.swift index e948c38a..85da02d2 100644 --- a/Source/Views/FooterView.swift +++ b/Source/Views/FooterView.swift @@ -1,6 +1,6 @@ import UIKit -public protocol FooterViewDelegate: class { +public protocol FooterViewDelegate: AnyObject { func footerView(_ footerView: FooterView, didExpand expanded: Bool) } diff --git a/Source/Views/HeaderView.swift b/Source/Views/HeaderView.swift index d51a64d1..dfdc3aee 100644 --- a/Source/Views/HeaderView.swift +++ b/Source/Views/HeaderView.swift @@ -1,6 +1,6 @@ import UIKit -protocol HeaderViewDelegate: class { +protocol HeaderViewDelegate: AnyObject { func headerView(_ headerView: HeaderView, didPressDeleteButton deleteButton: UIButton) func headerView(_ headerView: HeaderView, didPressCloseButton closeButton: UIButton) } diff --git a/Source/Views/InfoLabel.swift b/Source/Views/InfoLabel.swift index 5301f0db..db29ccb0 100644 --- a/Source/Views/InfoLabel.swift +++ b/Source/Views/InfoLabel.swift @@ -1,6 +1,6 @@ import UIKit -public protocol InfoLabelDelegate: class { +public protocol InfoLabelDelegate: AnyObject { func infoLabel(_ infoLabel: InfoLabel, didExpand expanded: Bool) }