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

# animationDidEnd(_:)

Sent to the delegate when the specified animation completes its run.

## Declaration

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

## Parameters

- `animation`: The NSAnimation instance that completed its run.

## Discussion

Discussion When an NSAnimation object reaches the end of its planned duration, it has a progress value of 1.0.

## See Also

### Related Documentation

- [NSAnimationDelegate](appkit/nsanimationdelegate.md)
- [currentProgress](appkit/nsanimation/currentprogress.md)

### Controlling and Monitoring an Animation

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