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.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://ieji.de/users/puppethead/statuses/116161179774273890 on your instance and quote it. (Note that quoting is not supported in Mastodon.)