---
title: rect
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/scrolltarget/rect
---

# rect

The rect that a scrollable view should try and have contained.

## Declaration

```swift
var rect: CGRect
```

## See Also

### Getting the scroll target

- [anchor](swiftui/scrolltarget/anchor.md)
