Best practice to to separate my data and the data from the user in SwiftUI

Need advice: best way to separate my data and the user data from the user in SwiftUI.
For example: I am providing a book database, and a user can add notes in it. When I update the app with new functions and new books, the notes from the user should not get lost.

Maybe to use JSON for the books and Core Data for the notes.
What is the best practice? Any publication or course?

This is better asked in Apple Developer's forum. Anyhow, this "separation" seems to be more about application logic than choice of persistence (about which this article is still pretty relevant).

Terms of Service

Privacy Policy

Cookie Policy