One Logo Pool Ball
SwiftUI · IOS API REFERENCE

PencilDoubleTapGestureValue

struct · iOS 17.5+ · SDK 27.1

struct PencilDoubleTapGestureValue

Describes the value of an Apple Pencil double-tap gesture.

Members (1)

get · iOS 17.5+

hoverPose

TypeScript
get hoverPose(): (PencilHoverPose) | null
Swift declaration
let hoverPose: PencilHoverPose?

The location and distance of an Apple Pencil hovering in the area above the view’s bounds when the double-tap gesture occurred. If the Apple Pencil was hovering in the area above the view’s bounds when the user double-tapped their Apple Pencil, this property describes its pose relative to that view. Conversely, if the Apple Pencil wasn’t hovering in the area above the view’s bounds or if the device can’t detect a hovering Apple Pencil, this property is `nil`.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →