Skip to content

Commit

Permalink
Merge pull request hyperoslo#295 from novr/fix_compiler_warning_class
Browse files Browse the repository at this point in the history
fix: 'class' keyword to define a class-constrained protocol is deprecated
  • Loading branch information
3lvis authored Dec 21, 2022
2 parents 0119309 + b7166be commit 398ee14
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Library/LayoutConfigurable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
protocol LayoutConfigurable: class {
protocol LayoutConfigurable: AnyObject {

func configureLayout()
}
2 changes: 1 addition & 1 deletion Source/Views/FooterView.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UIKit

public protocol FooterViewDelegate: class {
public protocol FooterViewDelegate: AnyObject {

func footerView(_ footerView: FooterView, didExpand expanded: Bool)
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Views/HeaderView.swift
Original file line number Diff line number Diff line change
@@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Views/InfoLabel.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UIKit

public protocol InfoLabelDelegate: class {
public protocol InfoLabelDelegate: AnyObject {

func infoLabel(_ infoLabel: InfoLabel, didExpand expanded: Bool)
}
Expand Down

0 comments on commit 398ee14

Please sign in to comment.