<!--
{
  "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/NSTextLayoutFragment/textAttachmentViewProviders",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextLayoutFragment(py)textAttachmentViewProviders"
  },
  "title" : "textAttachmentViewProviders"
}
-->

# textAttachmentViewProviders

The attachment view provider associated with the text layout fragment.

```
var textAttachmentViewProviders: [NSTextAttachmentViewProvider] { get }
```

## Discussion

The property contents are only valid with [`NSTextLayoutFragment.State.layoutAvailable`](/documentation/UIKit/NSTextLayoutFragment/State-swift.enum/layoutAvailable).

---

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)