<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutFragment/textAttachmentViewProviders",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "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/AppKit/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)