This question is more of an aesthetic one. I have a simple Codable with a string array. I use it to encode and decode a plist:
struct Favorites: Codable {
var favorites: [String]
}
The one thing that bothers me about this is when I e.g. add an element to the array, I have to do this:
favorites.favorites += [phrase]
Is there something I can do to prevent having to write the double favorites.favorites?