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

# UITargetedDragPreview

A drag item preview used by the system during lift, drop, or cancellation animation.

```
@MainActor class UITargetedDragPreview
```

## Topics

### Initializing a targeted drag item preview

[`init(forURL:target:)`](/documentation/UIKit/UITargetedDragPreview/init(forURL:target:))

Initializes a new targeted drag item preview with a URL and a drag item preview.

[`init(forURL:title:target:)`](/documentation/UIKit/UITargetedDragPreview/init(forURL:title:target:))

Initializes a new targeted drag item preview with a URL, a title, and a drag item preview.

### Replacing the preview

[`-  retargetedPreviewWithTarget:`](/documentation/UIKit/UITargetedDragPreview/retargetedPreview(with:))

Returns a new targeted drag item preview based on an existing one, but with a new geometric target.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`UITargetedPreview`](/documentation/UIKit/UITargetedPreview)

---

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)