Scene
A scene contains the view hierarchy of your app.
1 | import SwiftUI |
In this sample, body returns the primary scene WindowGroup
, which describes the view hierarchy of the sample’s main window.
WindowGroup: It provides platform-specific behaviors for your app, such as supporting multiple windows in macOS and iPadOS.
The computed body
property can return one or more primary and secondary scenes.