<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDragItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDragItem"
  },
  "title" : "UIDragItem"
}
-->

# UIDragItem

A representation of an underlying data item as a person drags it from one location to another.

```
@MainActor class UIDragItem
```

## Topics

### Initializing a drag item

[`init(itemProvider:)`](/documentation/UIKit/UIDragItem/init(itemProvider:))

Initializes a new drag item with a specified item provider.

### Accessing the drag item’s data

[`itemProvider`](/documentation/UIKit/UIDragItem/itemProvider)

The item provider associated with the drag item.

[`localObject`](/documentation/UIKit/UIDragItem/localObject)

A custom object associated with the drag item.

### Changing the drag item preview

[`previewProvider`](/documentation/UIKit/UIDragItem/previewProvider)

A visual preview of the drag item, displayed while the user drags the item across the screen.

[`setNeedsDropPreviewUpdate()`](/documentation/UIKit/UIDragItem/setNeedsDropPreviewUpdate())

Notifies the operating system that an updated drop preview is available for the item.



---

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)