---
title: UIDragPreview
framework: uikit
role: symbol
role_heading: Class
path: uikit/uidragpreview
---

# UIDragPreview

A graphical preview for a single drag item, used by the system after a drag has started and when no related animation is running.

## Declaration

```swift
@MainActor class UIDragPreview
```

## Overview

Overview A UIDragPreview object is a visual representation of the drag item. The preview is displayed while the user moves the item across the screen with their finger (after the lift animation completes). The preview disappears when the user lifts their finger, triggering the start of the drop or cancellation animation.

## Topics

### Initializing a drag item preview

- [init(view:)](uikit/uidragpreview/init(view:).md)
- [init(view:parameters:)](uikit/uidragpreview/init(view:parameters:).md)
- [init(forURL:)](uikit/uidragpreview/init(forurl:).md)
- [init(forURL:title:)](uikit/uidragpreview/init(forurl:title:).md)

### Getting the visual appearance parameters

- [parameters](uikit/uidragpreview/parameters.md)

### Accessing the view

- [view](uikit/uidragpreview/view.md)

### Initializers

- [init(for:)](uikit/uidragpreview/init(for:).md)
- [init(for:title:)](uikit/uidragpreview/init(for:title:).md)

### Default Implementations

- [UIDragPreview Implementations](uikit/uidragpreview/uidragpreview-implementations.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Custom drag item previews

- [UIDragPreviewParameters](uikit/uidragpreviewparameters.md)
- [UIDragPreviewTarget](uikit/uidragpreviewtarget.md)
- [UITargetedDragPreview](uikit/uitargeteddragpreview.md)
