소개
SwiftData schema migrations require precision to avoid data loss, especially when dealing with type changes and complex relationships. This skill provides expert guidance on navigating the architectural constraints of willMigrate and didMigrate through two-stage migration patterns. It equips developers with the blueprints for defining VersionedSchema snapshots, maintaining many-to-many relationships, and utilizing prefetching to optimize performance during the migration process, ensuring robust data transitions on real devices.