---
title: "draggedItemIDs(for:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/dragsession/draggeditemids(for:)"
---

# draggedItemIDs(for:)

Provides an array of identifiers of the currently dragged items in a case when the items conform to the Identifiable protocol, or identifiers were provided to SwiftUI separately.

## Declaration

```swift
func draggedItemIDs<ItemID>(for type: ItemID.Type) -> [ItemID] where ItemID : Hashable
```

## Discussion

Discussion Parameter type: The type of the identifiers. Returns: The array with the identifiers of the dragged items if provided. Returns an empty array if no dragged identifiers of a given type exist.
