[AltStoreCore] Fixes Core Data “Using nil or insecure value transformer” warnings

This commit is contained in:
Riley Testut
2023-03-01 16:22:45 -06:00
committed by Magesh K
parent 960492f1d0
commit aa2409178b
2 changed files with 7 additions and 6 deletions

View File

@@ -7,6 +7,7 @@
//
import Foundation
import UIKit
@objc(ALTSecureValueTransformer)
public final class SecureValueTransformer: NSSecureUnarchiveFromDataTransformer
@@ -14,7 +15,7 @@ public final class SecureValueTransformer: NSSecureUnarchiveFromDataTransformer
public static let name = NSValueTransformerName(rawValue: "ALTSecureValueTransformer")
public override static var allowedTopLevelClasses: [AnyClass] {
let allowedClasses = super.allowedTopLevelClasses + [NSError.self]
let allowedClasses = super.allowedTopLevelClasses + [NSError.self, UIColor.self]
return allowedClasses
}