var body: some Scene {
WindowGroup {
ContentView()
.frame(minWidth: 720, maxWidth: 1280, minHeight: 720, maxHeight: 1700)
}
.defaultSize(CGSize(width: 1280, height: 720))
.windowResizability(.contentSize)
Will assign a default size. You can also limit the resize range with .frame(minWidth, maxWidth ...)
Topic:
App & System Services
SubTopic:
Core OS
Tags: