I'm using my own NSWindowController with a SwiftUI view as the root view of an NSWindow, and I'm trying to figure out how to use @Environment (or something else) to change a value in the NSWindowController and let the SwiftUI view act accordingly.
The window does work and displays properly, but I can't figure out how to change the state from within my NSWindowController update method.
If anyone has any tips I'd be appreciative.