---
title: "body(content:phase:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/transition/body(content:phase:)"
---

# body(content:phase:)

Gets the current body of the caller.

## Declaration

```swift
@ContentBuilder @MainActor @preconcurrency func body(content: Self.Content, phase: TransitionPhase) -> Self.Body
```

## Discussion

Discussion content is a proxy for the view that will have the modifier represented by Self applied to it.

## See Also

### Creating a custom transition

- [Body](swiftui/transition/body.md)
- [Transition.Content](swiftui/transition/content.md)
