---
title: state
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextlayoutfragment/state-swift.property
---

# state

The layout information state.

## Declaration

```swift
var state: NSTextLayoutFragment.State { get }
```

## Discussion

Discussion This property is KVO-compliant.

## See Also

### Getting element information

- [NSTextLayoutFragment.State](uikit/nstextlayoutfragment/state-swift.enum.md)
- [rangeInElement](uikit/nstextlayoutfragment/rangeinelement.md)
- [textElement](uikit/nstextlayoutfragment/textelement.md)
