---
title: renderingSurfaceBounds
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextlayoutfragment/renderingsurfacebounds
---

# renderingSurfaceBounds

The bounds defining the area required for rendering the contents.

## Declaration

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

## Discussion

Discussion The coordinate system is vertically flipped from the layoutFragmentFrame origin ({0,0} is at the upper-left corner). The size should be larger than layoutFragmentFrame.size. The origin could be in the negative coordinate since the rendering could stretch out of layoutFragmentFrame. Only valid when state greater than NSTextLayoutFragment.State.estimatedUsageBounds.

## See Also

### Drawing the fragment and attachments

- [layoutFragmentFrame](uikit/nstextlayoutfragment/layoutfragmentframe.md)
- [draw(at:in:)](uikit/nstextlayoutfragment/draw(at:in:).md)
- [invalidateLayout()](uikit/nstextlayoutfragment/invalidatelayout().md)
- [textAttachmentViewProviders](uikit/nstextlayoutfragment/textattachmentviewproviders.md)
- [frameForTextAttachment(at:)](uikit/nstextlayoutfragment/framefortextattachment(at:).md)
