Skip to content

Commit 398ee14

Browse files
authored
Merge pull request #295 from novr/fix_compiler_warning_class
fix: 'class' keyword to define a class-constrained protocol is deprecated
2 parents 0119309 + b7166be commit 398ee14

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
protocol LayoutConfigurable: class {
1+
protocol LayoutConfigurable: AnyObject {
22

33
func configureLayout()
44
}

Source/Views/FooterView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
public protocol FooterViewDelegate: class {
3+
public protocol FooterViewDelegate: AnyObject {
44

55
func footerView(_ footerView: FooterView, didExpand expanded: Bool)
66
}

Source/Views/HeaderView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
protocol HeaderViewDelegate: class {
3+
protocol HeaderViewDelegate: AnyObject {
44
func headerView(_ headerView: HeaderView, didPressDeleteButton deleteButton: UIButton)
55
func headerView(_ headerView: HeaderView, didPressCloseButton closeButton: UIButton)
66
}

Source/Views/InfoLabel.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
public protocol InfoLabelDelegate: class {
3+
public protocol InfoLabelDelegate: AnyObject {
44

55
func infoLabel(_ infoLabel: InfoLabel, didExpand expanded: Bool)
66
}

0 commit comments

Comments
 (0)