WindowGroup{
SolarDisplayView()
.environment(model)
}
.windowStyle(.plain)
Why is the code above correct while the code below reports an error? How to modify the following code?
WindowGroup{
SolarDisplayView()
.environment(model)
}
.windowStyle(model.isShow ? .plain : .automatic)