---
title: textAttachmentViewProviders
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/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](uikit/nstextlayoutfragment/layoutfragmentframe.md)
- [renderingSurfaceBounds](uikit/nstextlayoutfragment/renderingsurfacebounds.md)
- [draw(at:in:)](uikit/nstextlayoutfragment/draw(at:in:).md)
- [invalidateLayout()](uikit/nstextlayoutfragment/invalidatelayout().md)
- [frameForTextAttachment(at:)](uikit/nstextlayoutfragment/framefortextattachment(at:).md)
