Contents

azimuthAngle(in:)

A value that represents the azimuth angle of the hovering pointing device in the specified view.

Declaration

func azimuthAngle(in view: UIView?) -> CGFloat

Parameters

  • view:

    The view the angle is relative to.

Return Value

A CGFloat that represents the azimuth angle of the hovering pointing device.

Discussion

If the specified view is nil, the method returns the azimuth angle of the hovering pointing device in the gesture recognizer’s window.

This method returns 0 for devices that don’t support azimuth.

See Also

Supporting Apple Pencil hover