One Logo Pool Ball
UIKit · IOS API REFERENCE

UIPreviewInteraction

class · iOS 10.0+ · SDK 27.1

@MainActor class UIPreviewInteraction

Members (6)

method · iOS 10.0+

cancel

TypeScript
cancel(): Promise<void>
Swift declaration
func cancel()
init · iOS 10.0+

init

TypeScript
static init(view: UIView): Promise<UIPreviewInteraction>
Swift declaration
init(view: UIView)
method · iOS 10.0+

location

TypeScript
location(coordinateSpace?: (SDKHandle) | null): Promise<{ x: number; y: number }>
Swift declaration
func location(in coordinateSpace: (any UICoordinateSpace)?) -> CGPoint
get · iOS 10.0+

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var delegate: (any UIPreviewInteractionDelegate)? { get set }
set · iOS 10.0+

delegate

TypeScript
setDelegate(value?: (Implements<UIPreviewInteractionDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var delegate: (any UIPreviewInteractionDelegate)? { get set }
get · iOS 10.0+

view

TypeScript
get view(): Promise<(UIView) | null>
Swift declaration
weak var view: UIView? { get }

Skipped declarations

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

UIPreviewInteraction.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →