renamed Field.Computed to Field.Virtual to distinguish from Field.Derived

This commit is contained in:
John Estropia
2020-02-06 09:33:08 +09:00
parent e9c3312612
commit f0f4049798
10 changed files with 54 additions and 34 deletions

View File

@@ -114,7 +114,8 @@ extension NSManagedObject: DynamicObject {
public class func cs_fromRaw(object: NSManagedObject) -> Self {
return unsafeDowncast(object, to: self)
// unsafeDowncast fails debug assertion starting Swift 5.2
return _unsafeUncheckedDowncast(object, to: self)
}
public static func cs_matches(object: NSManagedObject) -> Bool {