I've been doing this with a transformable type as NSObject. It's very straight forward there. But now I need to use NSSecureUnarchiveFromData. And I just can't find a combination it likes or I've over complicated something. I'm using a custom value transformer for a class that contains the array. I seem to be stuck in finding the right way to properly encode and decode it. Any help would be appreciated. My last attempt was to try to convert to an array of Data and back. But this didn't work either.
Storing array of uibezierpath to CoreData
Solved. Turns out I'm just not very bright. Didn't set the class variable in my init. So it only had an empty array to work with.