My app has Monster objects that can be placed in a team. It is critical that the same species of Monster can appear in a team more than once. Each team contains 6 monsters.
Initially I had a to-many relationship setup between Teams and Monsters. But Swift's Set would not allow for the same type of monster to appear twice in a team. This is an issue as my app requires the ability to have the same monster appear in a team more than once.
I have read it is possible to use transformable or binary types to store arrays in Core Data. Unfortunately most resources were not in Swift and I am unable to convert. Would one of these avenues be the solution I need? If so, should I use transformable or binary? Lastly (and most importantly) how do I go about storing and retrieving an array of custom objects? I have never used NSCoding before and do not know where to start.
