How to Initialize SwiftData Instances Only on First App Launch?
I need some help with SwiftData. I want to have a few instances of one of my SwiftData classes created only the first time the app opens. These instances should be created once when the app opens for the first time, and not on subsequent launches. I’ve tried hard-coding them, but SwiftData is giving me issues with this approach. It seems like SwiftData requires instances to be created by the app itself, rather than being hard-coded. Is there a proper way to initialize these instances only on the first app launch?