<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSTextAttachmentViewProvider/tracksTextAttachmentViewBounds",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextAttachmentViewProvider(py)tracksTextAttachmentViewBounds"
  },
  "title" : "tracksTextAttachmentViewBounds"
}
-->

# tracksTextAttachmentViewBounds

A Boolean value that determines the text attachment’s bounds policy.

```
var tracksTextAttachmentViewBounds: Bool { get set }
```

## Discussion

If `true`, the framework calls the `textAttachment` property’s [`attachmentBounds(for:location:textContainer:proposedLineFragment:position:)`](/documentation/UIKit/NSTextAttachmentViewProvider/attachmentBounds(for:location:textContainer:proposedLineFragment:position:)) method and examines the text attachment view provider to determine the bounds instead of using the `bounds` property of this instance. Defaults to `false`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)