Did you consider creating a @State var that controls the state of the window.
Do you want to resize window or a view inside ?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: