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

# draggingEnded(_:)

Responds to the end of a drag operation.

```
@MainActor optional func draggingEnded(_ draggingInfo: any NSDraggingInfo)
```

## Parameters

`draggingInfo`

An object of type `NSDraggingInfo`, which provides information about the drag event, including the dragged data.

## Discussion

This method is called when a drag operation has ended. If the destination object is both a dragging destination (class `NSDraggingDestination`) and a spring-loading destination (class `NSSpringLoadingDestination`), note that this method is only called once.

## See Also

[`NSSpringLoadingOptions`](/documentation/AppKit/NSSpringLoadingOptions)

These constants denote the type of spring-loading behavior configured for the destination object.

[`NSDraggingInfo`](/documentation/AppKit/NSDraggingInfo)

A set of methods that supply information about a dragging session.



---

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)