<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutFragment/State-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTextLayoutFragmentState"
  },
  "title" : "NSTextLayoutFragment.State"
}
-->

# NSTextLayoutFragment.State

Values that describe the possible layout states.

```
enum State
```

## Topics

### Constants that describe layout bounds

[`case calculatedUsageBounds`](/documentation/AppKit/NSTextLayoutFragment/State-swift.enum/calculatedUsageBounds)

The layout fragment measurements are available without text line fragments.

[`case estimatedUsageBounds`](/documentation/AppKit/NSTextLayoutFragment/State-swift.enum/estimatedUsageBounds)

The text layout manager hasn’t performed a full layout yet for the region covered by this layout fragment and is returning an estimated bounds.

[`case layoutAvailable`](/documentation/AppKit/NSTextLayoutFragment/State-swift.enum/layoutAvailable)

Measurements for the text line fragments and layout fragment are available.

[`case none`](/documentation/AppKit/NSTextLayoutFragment/State-swift.enum/none)

No layout information is available.

### Initializers

[`init?(rawValue: UInt)`](/documentation/AppKit/NSTextLayoutFragment/State-swift.enum/init(rawValue:))

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)