---
title: "draggingExited(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdraggingdestination/draggingexited(_:)"
---

# draggingExited(_:)

Invoked when the dragged image exits the destination’s bounds rectangle (in the case of a view object) or its frame rectangle (in the case of a window object).

## Declaration

```swift
@MainActor optional func draggingExited(_ sender: (any NSDraggingInfo)?)
```

## Parameters

- `sender`: The object sending the message; use it to get details about the dragging operation.

## See Also

### Managing a Dragging Session Before an Image Is Released

- [draggingEntered(_:)](appkit/nsdraggingdestination/draggingentered(_:).md)
- [wantsPeriodicDraggingUpdates()](appkit/nsdraggingdestination/wantsperiodicdraggingupdates().md)
- [draggingUpdated(_:)](appkit/nsdraggingdestination/draggingupdated(_:).md)
- [draggingEnded(_:)](appkit/nsdraggingdestination/draggingended(_:).md)
