swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

Support multiple windows

Open stackotter opened this issue 3 years ago • 1 comments
trafficstars

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.

stackotter avatar Mar 20 '22 08:03 stackotter

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

Amzd avatar Jun 08 '23 14:06 Amzd