zDistance
The normalized distance between the screen and a hovering Apple Pencil.
Declaration
let zDistance: CGFloatDiscussion
This value is 1 at the maximum distance from the screen and approaches 0 as the Apple Pencil gets closer to the screen.