---
title: textAttachmentViewProviders
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextlayoutfragment/textattachmentviewproviders
---

# textAttachmentViewProviders

The attachment view provider associated with the text layout fragment.

## Declaration

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

## Discussion

Discussion The property contents are only valid with NSTextLayoutFragment.State.layoutAvailable.

## See Also

### Drawing the fragment and attachments

- [layoutFragmentFrame](appkit/nstextlayoutfragment/layoutfragmentframe.md)
- [renderingSurfaceBounds](appkit/nstextlayoutfragment/renderingsurfacebounds.md)
- [draw(at:in:)](appkit/nstextlayoutfragment/draw(at:in:).md)
- [invalidateLayout()](appkit/nstextlayoutfragment/invalidatelayout().md)
- [frameForTextAttachment(at:)](appkit/nstextlayoutfragment/framefortextattachment(at:).md)
