<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Scene/body-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5SceneP4body4BodyQzvp"
  },
  "title" : "body"
}
-->

# body

The content and behavior of the scene.

```
@SceneBuilder @MainActor @preconcurrency var body: Self.Body { get }
```

## 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`](/documentation/SwiftUI/Scene/Body-swift.associatedtype)
associated type based on the contents of the `body` property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)