My UI is very heavyweight, so I'd like to show the previous versions using a lighter weight - almost like quick look - UI.
This would also allow me to 'zoom to fit' so the entire document can be seen.
I am using SwiftUI, but I wouldn't mind jumping into AppKit and/or UIKit to implement this.
The ScenePhase only seems to update on the last document opened, so it doesn't work properly.
The only way I could make this work was by checking if the url passed in contains "com.apple.documentVersions".
Kind of a hack, but it is the only thing that seemed to work reliably.
Hopefully someone else has a better solution.