---
title: NSWritingToolsCoordinator.TextUpdateReason
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nswritingtoolscoordinator/textupdatereason
---

# NSWritingToolsCoordinator.TextUpdateReason

Constants that specify the reason you updated your view’s content outside of the Writing Tools workflow.

## Declaration

```swift
enum TextUpdateReason
```

## Overview

Overview If you modify your view’s text storage while Writing Tools is active, report those changes to your NSWritingToolsCoordinator object so it can track them correctly. Call the updateRange(_:with:reason:forContextWithIdentifier:) method to report changes that occur inside one of your context objects. Call the updateForReflowedTextInContextWithIdentifier(_:) method for changes that affect the layout of your text, such as text insertions before a context object or changes to your view’s frame rectangle.

## Topics

### Getting the reasons

- [NSWritingToolsCoordinator.TextUpdateReason.typing](appkit/nswritingtoolscoordinator/textupdatereason/typing.md)
- [NSWritingToolsCoordinator.TextUpdateReason.undoRedo](appkit/nswritingtoolscoordinator/textupdatereason/undoredo.md)

### Initializers

- [init(rawValue:)](appkit/nswritingtoolscoordinator/textupdatereason/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

### Reporting changes to Writing Tools

- [updateRange(_:with:reason:forContextWithIdentifier:)](appkit/nswritingtoolscoordinator/updaterange(_:with:reason:forcontextwithidentifier:).md)
- [updateForReflowedTextInContextWithIdentifier(_:)](appkit/nswritingtoolscoordinator/updateforreflowedtextincontextwithidentifier(_:).md)
