---
title: totalBounds
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nsstringdrawingcontext/totalbounds
---

# totalBounds

The most recent bounding rectangle that the system used to draw the string.

## Declaration

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

## Discussion

Discussion This property contains the bounding rectangle that was last used when calling the draw(with:options:context:) method. The rectangle is specified in the coordinate system of the drawn string. (The origin of the bounds corresponds to neither a view the string might have been drawn into nor the origin of a possible draw(in:) call.)
