---
title: draggingLeaderIndex
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdraggingsession/draggingleaderindex
---

# draggingLeaderIndex

The index of the dragging item under the cursor.

## Declaration

```swift
var draggingLeaderIndex: Int { get set }
```

## Discussion

Discussion The index is to an element in the array passed as the first parameter to the NSView method beginDraggingSession(with:event:source:). The default is the NSDraggingItem closest to the location field in the event parameter that was passed to the beginDraggingSession(with:event:source:) method.
