hi,
i think we might be ships passing in the night on this, as i understood your Bookworm reference in the context of an app that uses Core Data (Paul's Bookworm for iOS is the first example of using Core Data in 100 Days of SwiftUI, day 53, project 11). i have not done anything with SQLite tables directly (only through the Core Data layer on top of it).
sorry about that, and the specific AddBook()
reference.
surely, at some point in your code, you currently allow the user to enter and save a new book (a title, an author, a review, a rating, etc.). i only proposed that to get the app started, you could do either of these:
(1) take the cheap way for now: if your persistent store is empty at startup, throw a few books into the store with the same code as you would add a user's entry of a new book.
(2) look into loading (JSON) data for book content straight from your app's bundle on startup. Paul has plenty of info on this on the site, and almost all of it is generic Swift that works on both iOS and MacOS. you would need to know about Codable to accomplish this.
again, sorry if i have missed the boat (!) on this.
good luck,
DMG