概要
This skill provides a comprehensive set of patterns and best practices for Apple's native persistence framework, SwiftData, designed specifically for modern xOS development. It covers everything from basic @Model definitions and declarative @Query usage in SwiftUI to advanced topics like Swift 6 concurrency with @MainActor, complex relationship management, and CloudKit integration. Developers can leverage this guidance to optimize performance with batch operations, handle many-to-many relationships safely, and navigate migrations from legacy frameworks like Core Data or Realm, ensuring robust and reactive data persistence across the Apple ecosystem.