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

@@ -31,7 +31,7 @@ import CoreData
/**
The `StorageInterface` represents the data store managed (or to be managed) by the `DataStack`. When added to the `DataStack`, the `StorageInterface` serves as the interface for the `NSPersistentStore`. This may be a database file, an in-memory store, etc.
*/
public protocol StorageInterface: class {
public protocol StorageInterface: AnyObject {
/**
The string identifier for the `NSPersistentStore`'s `type` property. This is the same string CoreStore will use to create the `NSPersistentStore` from the `NSPersistentStoreCoordinator`'s `addPersistentStoreWithType(...)` method.