stackotter/swift-cross-ui

Support multiple windows

stackotter opened this issue · 2 comments

SwiftUI approaches this by having the body of App be of type some Scene where a scene can define windows using a result builder.

The way I plan on approaching this is making App.body be of type some AppContent and having a Window struct that AppContentBuilder accepts. Then _App can setup the windows accordingly in run.

Amzd commented

Note: Don't forget to use the correct window in Widget.cssProvider when we implement this