How to use SwiftData

Issue #1040 &#xA; SwiftData is Apple&rsquo;s modern persistence framework, introduced in iOS 17. It builds on top of Core Data but exposes a Swift-native API using macros and property wrappers. For most apps targeting iOS 17 or later, it replaces Core Data entirely without needing to touch an xcdatamodeld file or write fetch requests by hand. &#xA; Defining a model &#xA; The entry point for any…