UIKit · IOS API REFERENCE
UITextDragPreviewRenderer
class · iOS 11.0+ · SDK 27.1
@MainActor class UITextDragPreviewRenderer
Members (8)
method · iOS 11.0+adjust
TypeScriptadjust(firstLineRect: "animatableData" | SDKHandle, bodyRect: "animatableData" | SDKHandle, lastLineRect: "animatableData" | SDKHandle, origin: { x: number; y: number }): Promise<void>
Swift declarationfunc adjust(firstLineRect: UnsafeMutablePointer<CGRect>, bodyRect: UnsafeMutablePointer<CGRect>, lastLineRect: UnsafeMutablePointer<CGRect>, textOrigin origin: CGPoint)
init · iOS 11.0+init
TypeScriptstatic initLayoutManagerRange(layoutManager: NSLayoutManager, range: SDKHandle): Promise<UITextDragPreviewRenderer>
Swift declarationconvenience init(layoutManager: NSLayoutManager, range: NSRange)
init · iOS 11.0+init
TypeScriptstatic initLayoutManagerRangeUnifyRects(layoutManager: NSLayoutManager, range: SDKHandle, unifyRects: boolean): Promise<UITextDragPreviewRenderer>
Swift declarationinit(layoutManager: NSLayoutManager, range: NSRange, unifyRects: Bool)
get · iOS 11.0+bodyRect
TypeScriptget bodyRect(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declarationvar bodyRect: CGRect { get }
get · iOS 11.0+firstLineRect
TypeScriptget firstLineRect(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declarationvar firstLineRect: CGRect { get }
get · iOS 11.0+image
TypeScriptget image(): Promise<UIImage>
Swift declarationvar image: UIImage { get }
get · iOS 11.0+lastLineRect
TypeScriptget lastLineRect(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declarationvar lastLineRect: CGRect { get }
get · iOS 11.0+layoutManager
TypeScriptget layoutManager(): Promise<NSLayoutManager>
Swift declarationvar layoutManager: NSLayoutManager { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UITextDragPreviewRenderer.init()
inherited init: cannot prove legal (class declares 2 custom initializers)
All UIKit types →