Skip to content

Commit 1a2ee4e

Browse files
committed
Add ViewContext conformance to NSManagedObjectContext
1 parent a50289d commit 1a2ee4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/CoreDataModel/NSManagedObjectContext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010
import CoreData
1111
import CoreModel
1212

13-
extension NSManagedObjectContext: ModelStorage {
13+
extension NSManagedObjectContext: ModelStorage, ViewContext {
1414

1515
public func fetch(_ entity: EntityName, for id: ObjectID) throws -> ModelData? {
1616
try self.find(entity, for: id)

0 commit comments

Comments
 (0)