One Logo Pool Ball
UIKit · IOS API REFERENCE

UITouch

class · iOS 2.0+ · SDK 27.1

@MainActor class UITouch

Members (23)

method · iOS 9.1+

azimuthAngle

TypeScript
azimuthAngle(view?: (UIView) | null): Promise<number>
Swift declaration
func azimuthAngle(in view: UIView?) -> CGFloat
method · iOS 9.1+

azimuthUnitVector

TypeScript
azimuthUnitVector(view?: (UIView) | null): Promise<{ dx: number; dy: number }>
Swift declaration
func azimuthUnitVector(in view: UIView?) -> CGVector
init

init

TypeScript
static init(): Promise<UITouch>
Swift declaration
init()
method · iOS 2.0+

location

TypeScript
location(view?: (UIView) | null): Promise<{ x: number; y: number }>
Swift declaration
func location(in view: UIView?) -> CGPoint
method · iOS 9.1+

preciseLocation

TypeScript
preciseLocation(view?: (UIView) | null): Promise<{ x: number; y: number }>
Swift declaration
func preciseLocation(in view: UIView?) -> CGPoint
method · iOS 9.1+

precisePreviousLocation

TypeScript
precisePreviousLocation(view?: (UIView) | null): Promise<{ x: number; y: number }>
Swift declaration
func precisePreviousLocation(in view: UIView?) -> CGPoint
method · iOS 2.0+

previousLocation

TypeScript
previousLocation(view?: (UIView) | null): Promise<{ x: number; y: number }>
Swift declaration
func previousLocation(in view: UIView?) -> CGPoint
get · iOS 9.1+

altitudeAngle

TypeScript
get altitudeAngle(): Promise<number>
Swift declaration
var altitudeAngle: CGFloat { get }
get · iOS 9.1+

estimatedProperties

TypeScript
get estimatedProperties(): Promise<UITouch_Properties>
Swift declaration
var estimatedProperties: UITouch.Properties { get }
get · iOS 9.1+

estimatedPropertiesExpectingUpdates

TypeScript
get estimatedPropertiesExpectingUpdates(): Promise<UITouch_Properties>
Swift declaration
var estimatedPropertiesExpectingUpdates: UITouch.Properties { get }
get · iOS 9.1+

estimationUpdateIndex

TypeScript
get estimationUpdateIndex(): Promise<(_Foundation_NSNumber) | null>
Swift declaration
var estimationUpdateIndex: NSNumber? { get }
get · iOS 9.0+

force

TypeScript
get force(): Promise<number>
Swift declaration
var force: CGFloat { get }
get · iOS 3.2+

gestureRecognizers

TypeScript
get gestureRecognizers(): Promise<(Array<UIGestureRecognizer>) | null>
Swift declaration
var gestureRecognizers: [UIGestureRecognizer]? { get }
get · iOS 8.0+

majorRadius

TypeScript
get majorRadius(): Promise<number>
Swift declaration
var majorRadius: CGFloat { get }
get · iOS 8.0+

majorRadiusTolerance

TypeScript
get majorRadiusTolerance(): Promise<number>
Swift declaration
var majorRadiusTolerance: CGFloat { get }
get · iOS 9.0+

maximumPossibleForce

TypeScript
get maximumPossibleForce(): Promise<number>
Swift declaration
var maximumPossibleForce: CGFloat { get }
get · iOS 2.0+

phase

TypeScript
get phase(): Promise<UITouch_Phase>
Swift declaration
var phase: UITouch.Phase { get }
get · iOS 17.5+

rollAngle

TypeScript
get rollAngle(): Promise<number>
Swift declaration
var rollAngle: CGFloat { get }
get · iOS 2.0+

tapCount

TypeScript
get tapCount(): Promise<number>
Swift declaration
var tapCount: Int { get }
get · iOS 2.0+

timestamp

TypeScript
get timestamp(): Promise<number>
Swift declaration
var timestamp: TimeInterval { get }
get · iOS 9.0+

type

TypeScript
get type(): Promise<UITouch_TouchType>
Swift declaration
var type: UITouch.TouchType { get }
get · iOS 2.0+

view

TypeScript
get view(): Promise<(UIView) | null>
Swift declaration
var view: UIView? { get }
get · iOS 2.0+

window

TypeScript
get window(): Promise<(UIWindow) | null>
Swift declaration
var window: UIWindow? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →