Skip to content

Commit

Permalink
Xcode 12.5 deprecation (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
lickel authored May 20, 2021
1 parent a5d8ba3 commit 365ce8c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FetchRequests/Sources/Associations/ObservableToken.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func synchronized<T>(_ lockObject: AnyObject, block: () -> T) -> T {
return block()
}

public protocol InvalidatableToken: class {
public protocol InvalidatableToken: AnyObject {
func invalidate()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct SectionCollapseConfig: Equatable {
}
}

public protocol CollapsibleSectionsFetchedResultsControllerDelegate: class {
public protocol CollapsibleSectionsFetchedResultsControllerDelegate: AnyObject {
associatedtype FetchedObject: FetchableObject

func controllerWillChangeContent(_ controller: CollapsibleSectionsFetchedResultsController<FetchedObject>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public enum FetchedResultsChange<Location: Equatable>: Equatable {
}
}

public protocol FetchedResultsControllerDelegate: class {
public protocol FetchedResultsControllerDelegate: AnyObject {
associatedtype FetchedObject: FetchableObject

func controllerWillChangeContent(_ controller: FetchedResultsController<FetchedObject>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

internal protocol InternalFetchResultsControllerProtocol: class, FetchedResultsControllerProtocol {
internal protocol InternalFetchResultsControllerProtocol: AnyObject, FetchedResultsControllerProtocol {
func manuallyInsert(objects: [FetchedObject], emitChanges: Bool)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

public protocol PausableFetchedResultsControllerDelegate: class {
public protocol PausableFetchedResultsControllerDelegate: AnyObject {
associatedtype FetchedObject: FetchableObject

func controllerWillChangeContent(_ controller: PausableFetchedResultsController<FetchedObject>)
Expand Down
2 changes: 1 addition & 1 deletion FetchRequests/Sources/FetchableObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public protocol RawDataRepresentable {
}

/// A class of types that should be fetchable via FetchRequests
public protocol FetchableObjectProtocol: class, FRIdentifiable, RawDataRepresentable
public protocol FetchableObjectProtocol: AnyObject, FRIdentifiable, RawDataRepresentable
where ID: Comparable
{
/// Has this object been marked as deleted?
Expand Down

0 comments on commit 365ce8c

Please sign in to comment.