---
title: textLineFragments
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextlayoutfragment/textlinefragments
---

# textLineFragments

An array of text line fragments.

## Declaration

```swift
var textLineFragments: [NSTextLineFragment] { get }
```

## Discussion

Discussion Valid when NSTextLayoutFragment.State.layoutAvailable. This property is KVO-compliant.

## See Also

### Getting line fragments

- [NSTextLayoutFragment.EnumerationOptions](uikit/nstextlayoutfragment/enumerationoptions.md)
- [textLineFragment(for:isUpstreamAffinity:)](uikit/nstextlayoutfragment/textlinefragment(for:isupstreamaffinity:).md)
- [textLineFragment(forVerticalOffset:requiresExactMatch:)](uikit/nstextlayoutfragment/textlinefragment(forverticaloffset:requiresexactmatch:).md)
