Skip to content

Commit 4d04acc

Browse files
committed
Aligned with upstream branch
1 parent c81b270 commit 4d04acc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/ManagedModels/SchemaCompatibility/CodableBox.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,13 @@ final class CodableBox<T: Codable>: NSObject, NSCopying {
5757
}
5858
}
5959

60-
final class Transformer: NSSecureUnarchiveFromDataTransformer {
60+
final class Transformer: ValueTransformer {
6161

6262
override class func transformedValueClass() -> AnyClass {
6363
CodableBox<T>.self
6464
}
6565
override class func allowsReverseTransformation() -> Bool { true }
6666

67-
override class var allowedTopLevelClasses: [AnyClass] {
68-
[ CodableBox<T>.self, NSData.self ]
69-
}
70-
7167
override func transformedValue(_ value: Any?) -> Any? {
7268
// value is the box
7369
guard let value else { return nil }

0 commit comments

Comments
 (0)