I found the reason for the warning. The explanation is posted in this forum : https://forums.developer.apple.com/forums/thread/765997 The issue started when I was observing the notifications from the changes to the SwiftData object and trying to save an object in a different thread started giving me the warning