<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWritingToolsCoordinator/TextReplacementReason",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIWritingToolsCoordinatorTextReplacementReason"
  },
  "title" : "UIWritingToolsCoordinator.TextReplacementReason"
}
-->

# UIWritingToolsCoordinator.TextReplacementReason

Options that indicate whether Writing Tools is animating changes to
your view’s text.

```
enum TextReplacementReason
```

## Overview

During an operation, Writing Tools delivers replacement text to the
delegate of the active [`UIWritingToolsCoordinator`](/documentation/UIKit/UIWritingToolsCoordinator) object. Depending
on the configured experience for your view, it delivers these changes
as either interactive or noninteractive replacements. For interactive
replacements, Writing Tools animates the change automatically and provides
you with the information you need to perform any related animations.

## Topics

### Getting the reasons

[`case interactive`](/documentation/UIKit/UIWritingToolsCoordinator/TextReplacementReason/interactive)

An option to animate the replacement of text in your view.

[`case noninteractive`](/documentation/UIKit/UIWritingToolsCoordinator/TextReplacementReason/noninteractive)

An option to replace the text in your view without animating the change.

### Enumeration Cases

[`case accepted`](/documentation/UIKit/UIWritingToolsCoordinator/TextReplacementReason/accepted)

An option to replace the text in your view when a grammar suggestion
is accepted.

[`case rejected`](/documentation/UIKit/UIWritingToolsCoordinator/TextReplacementReason/rejected)

An option to replace the text in your view when a grammar suggestion
is rejected.

[`case temporary`](/documentation/UIKit/UIWritingToolsCoordinator/TextReplacementReason/temporary)

An option to replace the text in your view when a grammar suggestion
is temporarily shown to preview the proposed change in the text.

### Initializers

[`init?(rawValue: Int)`](/documentation/UIKit/UIWritingToolsCoordinator/TextReplacementReason/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)