Here’s a project demonstrating how to integrate a SwiftUI document-based application using JSON model encoding with the iOS Undo Manager. Pulling all the pieces together to make this work properly was surprisingly difficult.
https://github.com/alldritt/JSONDocumentTest
#SwiftUI