How to save data captured from a Background fetch into a SwiftData model
Newbie to SwiftUI here. I am developing an app that will select a random quote (a “Selection”; see definition below) from a JSON file once a day, and then send it to the phone in a local Notification. All this is done in the @main part of the app. When you tap on the Notification, it opens the App and shows the quote (in ContentView). You can then save the quote (I’m using SwiftData).
Strange onDelete behavior
I’m learning SwiftData, I used the Stewart Lynch playlist on Youtube to understand and I have this little project to try this out. I use almost the same code as he is but I have a problem and I can’t figured it out…