change protocol inheritance from class to AnyObject (as per recent Swift recommendation)

This commit is contained in:
John Estropia
2019-04-27 17:50:55 +09:00
parent fe7e6e7b84
commit 08053ccb15
16 changed files with 16 additions and 16 deletions

View File

@@ -964,7 +964,7 @@ You can even use external types from popular 3rd-party JSON libraries, or just s
#### `ImportableObject`
`ImportableObject` is a very simple protocol:
```swift
public protocol ImportableObject: class {
public protocol ImportableObject: AnyObject {
typealias ImportSource
static func shouldInsert(from source: ImportSource, in transaction: BaseDataTransaction) -> Bool
func didInsert(from source: ImportSource, in transaction: BaseDataTransaction) throws