---
title: body
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/app/body-swift.property
---

# body

The content and behavior of the app.

## Declaration

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

## Discussion

Discussion For any app that you create, provide a computed body property that defines your app’s scenes, which are instances that conform to the Scene protocol. For example, you can create a simple app with a single scene containing a single view: @main struct MyApp: App {     var body: some Scene {         WindowGroup {             Text("Hello, world!")         }     } } Swift infers the app’s Body associated type based on the scene provided by the body property.

## See Also

### Implementing an app

- [Body](swiftui/app/body-swift.associatedtype.md)
