<!--
{
  "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/init(itemProvider:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDragItem(im)initWithItemProvider:"
  },
  "title" : "init(itemProvider:)"
}
-->

# init(itemProvider:)

Initializes a new drag item with a specified item provider.

```
init(itemProvider: NSItemProvider)
```

## Parameters

`itemProvider`

An instance of <doc://com.apple.documentation/documentation/Foundation/NSItemProvider> that conveys the data or file to share during the drag-and-drop activity.

## Return Value

A drag item that the system initializes with the specified item provider.

## Discussion

Provide an <doc://com.apple.documentation/documentation/Foundation/NSItemProvider> object to create a new drag item. The item provider communicates the data that the drag-and-drop activity shares between processes.

---

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)