NSWritingToolsCoordinator.AnimationParameters
An object you use to configure additional tasks or animations to run alongside the Writing Tools animations.
Declaration
class AnimationParametersOverview
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.