<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedString/SpellingState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSSpellingState"
  },
  "title" : "NSAttributedString.SpellingState"
}
-->

# NSAttributedString.SpellingState

Constants for the spelling state attribute key.

```
enum SpellingState
```

## Overview

Use these constants as the values for the [`spellingState`](/documentation/Foundation/NSAttributedString/Key/spellingState) key.

## Topics

### Getting the spelling states

[`NSAttributedString.SpellingState.grammar`](/documentation/Foundation/NSAttributedString/SpellingState/grammar)

Flag for grammar issues.

[`NSAttributedString.SpellingState.spelling`](/documentation/Foundation/NSAttributedString/SpellingState/spelling)

Flag for spelling issues.

## Relationships

### Conforms To

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

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

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

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

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

[`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)