---
title: "animationDidStop(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsanimationdelegate/animationdidstop(_:)"
---

# animationDidStop(_:)

Sent to the delegate when the specified animation is stopped before it completes its run.

## Declaration

```swift
nonisolated optional func animationDidStop(_ animation: NSAnimation)
```

## Parameters

- `animation`: The NSAnimation instance that was stopped.

## Discussion

Discussion An NSAnimation object stops running when it receives a stop() message.

## See Also

### Controlling and Monitoring an Animation

- [animationDidEnd(_:)](appkit/nsanimationdelegate/animationdidend(_:).md)
- [animationShouldStart(_:)](appkit/nsanimationdelegate/animationshouldstart(_:).md)
- [animation(_:valueForProgress:)](appkit/nsanimationdelegate/animation(_:valueforprogress:).md)
