Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum AssociationPolicy: UInt {
}
}

protocol AssociatedObjects: class { }
protocol AssociatedObjects: AnyObject { }

// transparent wrappers
extension AssociatedObjects {
Expand Down
4 changes: 2 additions & 2 deletions EmptyStateKit/Classes/EmptyState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

import UIKit

public protocol EmptyStateDelegate: class {
public protocol EmptyStateDelegate: AnyObject {
func emptyState(emptyState: EmptyState, didPressButton button: UIButton)
}

public protocol EmptyStateDataSource: class {
public protocol EmptyStateDataSource: AnyObject {
func imageForState(_ state: CustomState, inEmptyState emptyState: EmptyState) -> UIImage?
func titleForState(_ state: CustomState, inEmptyState emptyState: EmptyState) -> String?
func descriptionForState(_ state: CustomState, inEmptyState emptyState: EmptyState) -> String?
Expand Down
2 changes: 1 addition & 1 deletion EmptyStateKit/Classes/NibView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

protocol NibViewProtocol: class {
protocol NibViewProtocol: AnyObject {
func commonInit()
}

Expand Down
2 changes: 1 addition & 1 deletion EmptyStateKit/Classes/Protocols/NibLoadable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import UIKit
*
* to be able to instantiate them from the NIB in a type-safe manner
*/
protocol NibLoadable: class {
protocol NibLoadable: AnyObject {
/// The nib file to use to load a new instance of the View designed in a XIB
static var nib: UINib { get }
}
Expand Down