---
title: rect
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/text/layout/typographicbounds/rect
---

# rect

Returns a rectangle encapsulating the bounds.

## Declaration

```swift
var rect: CGRect { get }
```
