I am trying to build an app that saves what cars a user owns, and I want to use Core Data to save the car's attributes. I already have implemented the ability to store a single piece of data (like the car's name, manufacturer, year etc). However I want to also store an array of strings. Basically, my object model looks like this:
Name: String
Manufacturer: String
Year: String
Colour: String
features: [String, String, String]
How would I implement this last line which is an array? Previous research tells me to use transformable but I don't know how to
Thanks
I'm using Xcode 13.4 / 14 and SwiftUI