SwiftUI/Structure/WindowGroup
Jump to navigation
Jump to search
| Type | Structure |
|---|---|
| iOS | 14.0+ |
| iPadOS | 14.0+ |
| macOS | 11.0+ |
| MacCatalyst | 14.0+ |
| tvOS | 14.0+ |
| watchOS | 7.0+ |
| Website | developer |
同じ構造を持つウィンドウ群を表示するScene
下記のようにScene の定義で利用する。複数Viewが含まれていても良く、並べてViewが表示される。
@main
struct Mail: App {
var body: some Scene {
WindowGroup {
MailViewer() // Declare a view hierarchy here.
}
}
}