Post not yet marked as solved
Post marked as unsolved with 0 replies, 72 views
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)