<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAnimationDelegate/animationDidEnd(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSAnimationDelegate(im)animationDidEnd:"
  },
  "title" : "animationDidEnd(_:)"
}
-->

# animationDidEnd(_:)

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

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

## Parameters

`animation`

The `NSAnimation` instance that completed its run.

## Discussion

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

## See Also

[`protocol NSAnimationDelegate`](/documentation/AppKit/NSAnimationDelegate)

A set of optional methods implemented by delegates of [`NSAnimation`](/documentation/AppKit/NSAnimation) objects.

[`var currentProgress: NSAnimation.Progress`](/documentation/AppKit/NSAnimation/currentProgress)

The current progress of the animation.



---

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)