everybody seems to encourage people to use structs & enums for good reasons when coding in swift. 1/2
Conversation
What would you recommend to persist this data when most of the frameworks require classes ( , #coredata)?
1
Replying to
Depends on your needs. You could simply not use a framework. Or you could isolate the framework; c.f.
Replying to
oh ok so you have a class equivalent for each struct. Don't you think it's hard to maintain after few model's iterations?
1
Engineering is all about trade offs.
1
Show replies
Replying to
how would you persist data without one of these framework? Plist file?
1
Or a binary format, whatever.
1
Show replies

