I found these two classes have similar concept.
VNDetectHumanHandPoseRequest (VisionKit)
HandTrackingProvider (visionOS)
So I use sample code "DetectingHandPosesWithVision" to make spatial gestures on my iPad using VNDetectHumanHandPoseRequest class.
https://developer.apple.com/documentation/vision/detecting_hand_poses_with_vision
After making some gestures on iPad, I will port them onto visionOS using HandTrackingProvider class.
This is not a workaround. But I think it is the only way to make spatial gestures now.
Topic:
App & System Services
SubTopic:
Core OS
Tags: