One Logo Pool Ball
UIKit · IOS API REFERENCE

UIDragPreview

class · iOS 11.0+ · SDK 27.1

@MainActor class UIDragPreview

Members (6)

init

init

TypeScript
static initFor(url: string): Promise<UIDragPreview>
Swift declaration
convenience init(for url: URL)
init

init

TypeScript
static initForTitle(url: string, title?: (string) | null): Promise<UIDragPreview>
Swift declaration
convenience init(for url: URL, title: String?)
init · iOS 11.0+

init

TypeScript
static initView(view: UIView): Promise<UIDragPreview>
Swift declaration
convenience init(view: UIView)
init · iOS 11.0+

init

TypeScript
static initViewParameters(view: UIView, parameters: UIDragPreviewParameters): Promise<UIDragPreview>
Swift declaration
init(view: UIView, parameters: UIDragPreviewParameters)
get · iOS 11.0+

parameters

TypeScript
get parameters(): Promise<UIDragPreviewParameters>
Swift declaration
@NSCopying var parameters: UIDragPreviewParameters { get }
get · iOS 11.0+

view

TypeScript
get view(): Promise<UIView>
Swift declaration
var view: UIView { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIDragPreview.init()

inherited init: cannot prove legal (class declares 6 custom initializers)

All UIKit types →