---
title: "rect3D(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/anchor/source/rect3d(_:)"
---

# rect3D(_:)

Returns an anchor source rect defined by r in the current element.

## Declaration

```swift
static func rect3D(_ r: Rect3D) -> Anchor<Value>.Source
```
