Login
You're viewing the front-end.social public feed.
  • Mar 2, 2026, 7:15 PM

    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.

    #SwiftUI #AppKit #macOS

    💬 0🔄 0⭐ 1