I am working on the project similar to SwiftUI tutorial - https://developer.apple.com/tutorials/swiftui . I have a "favourites" button done, but every time app restarts, list of marked items is gone. I understand Core Data is the way to go, but as each item (struct) has a lot of information attached (pictures, text etc.) and "favourite" is just one Bool. I am not sure how to use Core Data and not to overload it. Do I need to use Core Data to save every item with all information(pictures, text etc.) or just bool and some reference to e.g. "id"?
4
0
1.6k