Drag Gesture
A simple example of using DragGesture to move entities.
Code snippets and examples of using common APIs throughout visionOS development
A simple example of using DragGesture to move entities.
We can use Long Press Gesture to perform an action or update our scene after a delay.
Spatial Tab Gesture adds the location of the tap on the entity. We can use this to place indicators or spawn new models in our scene.
Starting in visionOS 2, volumes can be tilted to face the users. This can make Volumes much more useful when sitting or lying down.
visionOS 2 brought us a new way to show users an indicator for the bottom of a Volume.
Did you know you can create your own custom file templates to use in Xcode? These have been a huge time save in my work for Step Into Vision.
Using the system tap gesture with RealityKit.
Learn the core concepts to use SwiftUI gestures with entities in a RealityView.
As of January 2026 and visionOS 26.2, we cannot use pushWindow with Volumes.
We can use the defaultWindowPlacement scene modifier with Volumes, but there are a few things to keep in mind.
We already covered how to open a new volume by ID and how to open a window with a value. Opening a volume with an ID is no different than with a window.
In visionOS, Volumes function like Windows, utilizing a .volumetric style. This post explains how to open and dismiss Volumes in SwiftUI.