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

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

No files matched your search

+1 -1
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