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

# init(view:parameters:)

Initializes a new drag item preview with a view and with a set of appearance parameters.

```
init(view: UIView, parameters: UIDragPreviewParameters)
```

## Parameters

`view`

A [`UIView`](/documentation/UIKit/UIView) object representing the drag item.

`parameters`

A [`UIDragPreviewParameters`](/documentation/UIKit/UIDragPreviewParameters) object containing appearance parameters for the drag item preview.

## Return Value

A drag preview that is based on the specified view and has specific appearance parameters.

## Discussion

Use this method to display a custom drag item preview based on the provided view and appearance parameters. The appearance parameters specify display options for the preview, such as a background color and a Bézier path of the visible area of the provided view. The appearance parameters affect only the display of the preview, and not the provided view. The drag item preview uses a snapshot of the view for the display, and it never changes or moves the view.

---

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)