---
title: bounds
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextattachment/bounds
---

# bounds

The layout bounds of the text attachment’s graphical representation in the text coordinate system.

## Declaration

```swift
var bounds: CGRect { get set }
```

## Discussion

Discussion The bounds rectangle origin is at the current glyph location on the text baseline. The default value is CGRectZero.

## See Also

### Defining the attachment’s contents

- [contents](uikit/nstextattachment/contents.md)
- [fileType](uikit/nstextattachment/filetype.md)
- [image](uikit/nstextattachment/image.md)
- [fileWrapper](uikit/nstextattachment/filewrapper.md)
- [allowsTextAttachmentView](uikit/nstextattachment/allowstextattachmentview.md)
- [usesTextAttachmentView](uikit/nstextattachment/usestextattachmentview.md)
- [lineLayoutPadding](uikit/nstextattachment/linelayoutpadding.md)
