SwiftData equivalent of the CoreData lifecycle methods

Anyone know the SwiftData equivalet of the CoreData lifecycle methods. and how do we override them or do something similar? eg:

  • awakeFromInsert()
  • willSave()
  • didSave()
  • willTurnIntoFault()
  • prepareForDeletion()
SwiftData equivalent of the CoreData lifecycle methods
 
 
Q