<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSTextContentManager/EnumerationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@NSTextContentManagerEnumerationOptions"
  },
  "title" : "NSTextContentManager.EnumerationOptions"
}
-->

# NSTextContentManager.EnumerationOptions

Values that control the order in which the framework enumerates text elements.

```
struct EnumerationOptions
```

## Topics

### Creating text element provider enumeration options

[`init(rawValue: UInt)`](/documentation/UIKit/NSTextContentManager/EnumerationOptions/init(rawValue:))

Creates a new text element provider with the provided raw value.

### Accessing the enumeration setting

[`static var reverse: NSTextContentManager.EnumerationOptions`](/documentation/UIKit/NSTextContentManager/EnumerationOptions/reverse)

Returns whether enumerations start from the end of the text element.

### Enumeration options

[`NSTextContentManagerEnumerationOptionsNone`](/documentation/UIKit/NSTextContentManagerEnumerationOptions/NSTextContentManagerEnumerationOptionsNone)

The value that represents no custom enumeration handing in text element enumerations.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)