I have my CoreData model set in a xcdatamodel file.
My attribute YYYY has a type transformable and I set the tranformer name in the Data model inspector.
I my
I spent way to much time on this to not share the solution I found :
I had to make the NSValueTransformer
subclass available to Objc.
@objc(LocationArrayTransformer)
class LocationArrayTransformer : NSValueTransformer {
....
}
Simple as that.
As @Sbooth points out, Swift classes are namespaced. Using @objc
makes the class available without namespacing. So setting the transformer name as MyApp.Mytransformer
works well too !