Instance Property インスタンスプロパティ

body

The content and behavior of the scene. シーンの内容と挙動。

Declaration 宣言

var body: ModifiedContent<Content, Modifier>.Body { get }
Available when Content conforms to Scene and Modifier conforms to _SceneModifier.

Discussion 議論

For any scene that you create, provide a computed body property that defines the scene as a composition of other scenes. You can assemble a scene from built-in scenes that SwiftUI provides, as well as other scenes that you’ve defined.

Swift infers the scene’s Body associated type based on the contents of the body property.