Undo manager and how to track changes in SwiftUI Document Apps

I would like to ask, from the video there is not clear how undoManagement and dirty state is tracked in SwiftUI Document Apps.

Can you explain more on this topik?

Thank you.
  • 1

Undo manager and how to track changes in SwiftUI Document Apps
 
 
Q