---
title: NSWritingToolsCoordinator.AnimationParameters
framework: appkit
role: symbol
role_heading: Class
path: appkit/nswritingtoolscoordinator/animationparameters
---

# NSWritingToolsCoordinator.AnimationParameters

An object you use to configure additional tasks or animations to run alongside the Writing Tools animations.

## Declaration

```swift
class AnimationParameters
```

## Overview

Overview When Writing Tools replaces text in one of your context objects, it provides an NSWritingToolsCoordinator.AnimationParameters object for you to use to configure any additional animations. During a Writing Tools session, you hide the text under evaluation and provide a targeted preview of your content. Writing Tools animations changes to that preview, but you might need to provide additional animations for other parts of your view’s content. For example, you might need to animate any layout changes caused by the insertion or removal of text in other parts of your view. Use this object to configure those animations. You don’t create an NSWritingToolsCoordinator.AnimationParameters object directly. Instead, the system creates one and passes it to the writingToolsCoordinator(_:replace:in:proposedText:reason:animationParameters:completion:) method of your NSWritingToolsCoordinator.Delegate object. Use that object to specify the blocks to run during and after the system animations.

## Topics

### Getting the animation values

- [duration](appkit/nswritingtoolscoordinator/animationparameters/duration.md)
- [delay](appkit/nswritingtoolscoordinator/animationparameters/delay.md)

### Creating custom animations

- [progressHandler](appkit/nswritingtoolscoordinator/animationparameters/progresshandler.md)
- [completionHandler](appkit/nswritingtoolscoordinator/animationparameters/completionhandler.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Writing Tools for custom views

- [Supporting Writing Tools via the pasteboard](appkit/supporting-writing-tools-via-the-pasteboard.md)
- [Adding Writing Tools support to a custom AppKit view](appkit/adding-writing-tools-support-to-a-custom-nsview.md)
- [NSWritingToolsCoordinator](appkit/nswritingtoolscoordinator.md)
- [NSWritingToolsCoordinator.Delegate](appkit/nswritingtoolscoordinator/delegate-swift.protocol.md)
- [NSWritingToolsCoordinator.Context](appkit/nswritingtoolscoordinator/context.md)
- [Enhancing your custom text engine with Writing Tools](appkit/enhancing-your-custom-text-engine-with-writing-tools.md)
