---
title: NSAttributedString.EnumerationOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsattributedstring/enumerationoptions
---

# NSAttributedString.EnumerationOptions

Options for enumerating attributes.

## Declaration

```swift
struct EnumerationOptions
```

## Overview

Overview These constants describe the options available to the enumerateAttribute(_:in:options:using:) and enumerateAttributes(in:options:using:) methods.

## Topics

### Getting the enumeration options

- [reverse](foundation/nsattributedstring/enumerationoptions/reverse.md)
- [longestEffectiveRangeNotRequired](foundation/nsattributedstring/enumerationoptions/longesteffectiverangenotrequired.md)

### Creating an enumeration option

- [init(rawValue:)](foundation/nsattributedstring/enumerationoptions/init(rawvalue:).md)
- [reverse](foundation/nsattributedstring/enumerationoptions/reverse.md)
- [longestEffectiveRangeNotRequired](foundation/nsattributedstring/enumerationoptions/longesteffectiverangenotrequired.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Getting attributes for a range of text

- [attributes(at:effectiveRange:)](foundation/nsattributedstring/attributes(at:effectiverange:).md)
- [attributes(at:longestEffectiveRange:in:)](foundation/nsattributedstring/attributes(at:longesteffectiverange:in:).md)
- [attribute(_:at:effectiveRange:)](foundation/nsattributedstring/attribute(_:at:effectiverange:).md)
- [attribute(_:at:longestEffectiveRange:in:)](foundation/nsattributedstring/attribute(_:at:longesteffectiverange:in:).md)
- [enumerateAttribute(_:in:options:using:)](foundation/nsattributedstring/enumerateattribute(_:in:options:using:).md)
- [enumerateAttributes(in:options:using:)](foundation/nsattributedstring/enumerateattributes(in:options:using:).md)
