---
title: dropOperation()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/ikimagebrowserview/dropoperation()
---

# dropOperation()

Returns the current drop operation.

## Declaration

```swift
func dropOperation() -> IKImageBrowserDropOperation
```

## Return Value

Return Value IKImageBrowserDropOn if the drop occurs on an item, otherwise IKImageBrowserDropBefore.

## Discussion

Discussion The returned value is valid when a drop occurred and until next drop. For example, given a browser with N cells , a cell of N-1 and operation of IKImageBrowserDropOn would specify a drop on the last cell.  To specify a drop after the last cell, one would use an index of N and IKImageBrowserDropBefore for the operation.

## See Also

### Supporting Drag and Drop

- [setDraggingDestinationDelegate(_:)](quartz/ikimagebrowserview/setdraggingdestinationdelegate(_:).md)
- [draggingDestinationDelegate()](quartz/ikimagebrowserview/draggingdestinationdelegate().md)
- [setDrop(_:dropOperation:)](quartz/ikimagebrowserview/setdrop(_:dropoperation:).md)
- [indexAtLocationOfDroppedItem()](quartz/ikimagebrowserview/indexatlocationofdroppeditem().md)
- [setAllowsDroppingOnItems(_:)](quartz/ikimagebrowserview/setallowsdroppingonitems(_:).md)
- [allowsDroppingOnItems()](quartz/ikimagebrowserview/allowsdroppingonitems().md)
