SwiftData's cleaner relationship syntax can create a false sense of security. Unlike Core Data, it doesn't automatically enforce referential integrity in the same way, leading to orphaned objects after deletes that cause no crash but result in silent data drift. The fix required manually re-enforcing consistency rules, reinforcing that syntactic simplicity doesn't equal data safety.

1m watch time

Sort: