---
title: "stop(when:reachesProgress:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsanimation/stop(when:reachesprogress:)"
---

# stop(when:reachesProgress:)

Stops running the animation represented by the receiver when another animation reaches a specific progress mark.

## Declaration

```swift
func stop(when animation: NSAnimation, reachesProgress stopProgress: NSAnimation.Progress)
```

## Parameters

- `animation`: The other NSAnimation object with which the receiver is linked.
- `stopProgress`: A float value (typed as NSAnimationProgress) that specifies a progress mark of the other animation.

## Discussion

Discussion This method links the running of two animations together. You can set only one NSAnimation object as a start animation and one as a stop animation at any one time. Setting a new stop animation removes any animation previously set.

## See Also

### Related Documentation

- [stop()](appkit/nsanimation/stop().md)

### Linking Animations Together

- [start(when:reachesProgress:)](appkit/nsanimation/start(when:reachesprogress:).md)
- [clearStart()](appkit/nsanimation/clearstart().md)
- [clearStop()](appkit/nsanimation/clearstop().md)
