SwiftUI โฉ app โฉ windows โฉ WindowGroup
A scene that presents a group of identically structured windows. Use a WindowGroup as a container for a view hierarchy that your app presents.
WindowGroup
@main struct MailApp: App { var body: some Scene { // โญ๏ธ WindowGroup WindowGroup { // โญ๏ธ at least one view is needed inside `WindowGroup`, // which acts as a container for your app's view hierarchy. MailViewer() } } }
SwiftUI โฉ Windows โฉ WindowGroup
Last updated 1 month ago