<!--
{
  "availability" : [
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWritingToolsCoordinatorTextAnimation"
  },
  "title" : "NSWritingToolsCoordinator.TextAnimation"
}
-->

# NSWritingToolsCoordinator.TextAnimation

The types of animations that Writing Tools performs during an
interactive update of your view.

```
enum TextAnimation
```

## Overview

Use the `NSWritingToolsCoordinatorTextAnimation` constants to
determine the type of animation that is occurring. During an
interactive change to your view, Writing Tools creates animations
to provide feedback about what’s happening. During the setup for
each animation, Writing Tools reports the type of animation to
the coordinator’s delegate, so you can perform additional
actions related to that animation. For example, during an insertion
animation, you might animate changes to other views in your interface.

## Topics

### Getting the animation types

[`case anticipate`](/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation/anticipate)

The animation that Writing Tools performs when waiting to receive
results from the large language model.

[`case insert`](/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation/insert)

The animation that Writing Tools performs when inserting text into your view.

[`case remove`](/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation/remove)

The animation that Writing Tools performs when removing text from your view.

[`case anticipateInactive`](/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation/anticipateInactive)

The animation effect that Writing Tools performs when the view is waiting
for results, but the system isn’t actively evaluating the text.

[`case translate`](/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation/translate)

The animation effect that Writing Tools performs on text situated after
the insertion point.

### Enumeration Cases

[`case indicateGrammar`](/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation/indicateGrammar)

The animation effect that Writing Tools performs on grammar issues
when they are first indicated.

### Initializers

[`init?(rawValue: Int)`](/documentation/AppKit/NSWritingToolsCoordinator/TextAnimation/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)