swiftData backingData or copy in memory - xcode15b4 - ios17

Is there a way to make a copy in memory of a persistent model ? the goal is to make a compare.

I try to use backingData but when i update the main model the backingData is also updated.

Is this a bug or am not using the method properly ?

Best.

let model = Model()
let modelBackingData = Model(backingData: model.backingData)
swiftData backingData or copy in memory - xcode15b4 - ios17
 
 
Q