Contents

zDistance

The normalized distance between the screen and a hovering Apple Pencil.

Declaration

let zDistance: CGFloat

Discussion

This value is 1 at the maximum distance from the screen and approaches 0 as the Apple Pencil gets closer to the screen.

See Also

Getting the hover characteristics