Related issue: Unable to set initial/default window size
WindowGroup {
ContentView()
.frame(width: 300, height: 400) // imperfect, the ornaments still layout as the original size
}
.windowStyle(.plain)
.defaultSize(width: 1.5, height: 2, depth: 0, in: .meters) // no effect on plain window
Related issue: Unable to set initial/default window size
WindowGroup {
ContentView()
.frame(width: 300, height: 400) // imperfect, the ornaments still layout as the original size
}
.windowStyle(.plain)
.defaultSize(width: 1.5, height: 2, depth: 0, in: .meters) // no effect on plain window