If you need several data items in a database table (as array in your case), the usual solution is to have two tables with a one-to-many relation to the other table having the multiple values.
In Xcode core data modelling terms, you'd have two entities and a one-to-many relationship between them.
Alternatively, you could do this in code, storing e.g. a comma separated string of elements in a string attribute. But then you'd have to implement parsing and generating this string yourself in code.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: