Initializer

init(view:)

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

Declaration

convenience init(view: UIView)

Parameters

view

A UIView object representing the drag item.

Return Value

A drag preview that is based on the specified view.

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: UIView, parameters: UIDragPreviewParameters)

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

init(for: URL)

Initializes a new drag item preview with a URL.

init(for: URL, title: String?)

Initializes a drag item preview with a URL and title.