When rotating a swiftui view in visionOS is there any way to cull the backface?

Asked on 09/22/2024

1 search

In visionOS, when rotating a SwiftUI view, you can control the viewpoints that are supported using the supportedVolumeViewpoints view modifier. This allows you to specify which viewpoints are supported, such as the front and sides, and exclude others like the back. This effectively prevents the backface from being visible or interactive, which can be useful if you want to cull the backface of a view.

For more details, you can refer to the session Dive deep into volumes and immersive spaces (11:36).