I'm trying to understand which is the good way (and suggested by Apple) for storing an array of String ([String]) using the framework Core Data with SwiftUI.
I haven't found any clear documentation about.
For what I saw, I should create an attribute of type Transformable and then set the "Custom Class" to [String]
But then I start to see some warnings at build time:
warning: Misconfigured Property: Wine.pairings is using a nil or insecure value transformer. Please switch to NSSecureUnarchiveFromDataTransformerName or a custom NSValueTransformer subclass of NSSecureUnarchiveFromDataTransformer
So, I'm wondering that maybe this is not the good approach.



NSCodingand en-/decode the string to/from JSON withCodableand map it with a computed property.