---
title: NSAttributedString.SpellingState
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/nsattributedstring/spellingstate
---

# NSAttributedString.SpellingState

Constants for the spelling state attribute key.

## Declaration

```swift
enum SpellingState
```

## Overview

Overview Use these constants as the values for the spellingState key.

## Topics

### Getting the spelling states

- [NSAttributedString.SpellingState.grammar](foundation/nsattributedstring/spellingstate/grammar.md)
- [NSAttributedString.SpellingState.spelling](foundation/nsattributedstring/spellingstate/spelling.md)

### Initializers

- [init(rawValue:)](foundation/nsattributedstring/spellingstate/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting text content attributes

- [NSAttributedString.Key](foundation/nsattributedstring/key.md)
- [NSAttributedString.TextHighlightStyle](foundation/nsattributedstring/texthighlightstyle.md)
- [NSAttributedString.TextHighlightColorScheme](foundation/nsattributedstring/texthighlightcolorscheme.md)
- [NSAttributedString.TextEffectStyle](foundation/nsattributedstring/texteffectstyle.md)
- [NSUnderlineStyle](uikit/nsunderlinestyle.md)
- [NSWritingDirectionFormatType](uikit/nswritingdirectionformattype.md)
