This one is not exactly what you want, but I think you can get some idea from this open source. Give it a try.
https://github.com/AlohaYos/VisionGesture
Post
Replies
Boosts
Views
Activity
This one is not exactly what you want, but I think you can get some idea from this open source.
https://github.com/AlohaYos/VisionGesture
This one is not exactly what you want, but I think you can get some idea. Give it a try.
https://github.com/AlohaYos/VisionGesture
This one is not exactly what you want, but I think you can get some idea from this open source.
https://github.com/AlohaYos/VisionGesture
Same here!
Thanks warpling for your advise.
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.