---
title: "init(view:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uidragpreview/init(view:)"
---

# init(view:)

Initializes a new drag item preview with a view, using the default appearance parameters.

## Declaration

```swift
convenience init(view: UIView)
```

## Parameters

- `view`: A doc://com.apple.uikit/documentation/UIKit/UIView object representing the drag item.

## Return Value

Return Value A drag preview that is based on the specified view.

## Discussion

Discussion Use this method to display a drag item preview based on a view that you provide. The preview displays a snapshot of the provided view. Changes to the view don’t appear after the preview is shown, and the preview doesn’t change or move the view.

## See Also

### Initializing a drag item preview

- [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)
