In visionOS, in ImmersiveSpace, how to let users drag a specific view?
ImmersiveSpace, drag a specific view
Drag gestures can be targeted to any entity
via .targetedToAnyEntity()
or a specific one with .targetedToEntity
If you use "any entity", you can check the entities identifiers and components inside your drag processing closure.