/AttachmentControls

Example Xcode project for FB13143132 - RealityView attachment controls don't always respond to user input

Primary LanguageSwift

FB13143132

In visionOS, if a RealityView in a volume has an attachment with controls, often the attachment's controls will not respond to user input.

visionOS 1.0 beta 3 (Xcode 15 beta 8)

screenshot

Repro steps:

  1. Run the attached app in Xcode, in the visionOS simulator.
  2. Move the app's window to the left side of the simulator screen.
  3. Select the window's Open Volume button.
  4. In the volume that appears, select the New Color button.

Expected behavior

The color of the sphere in the volume changes to a random color.

Observed behavior

The Open Volume button doesn't work, and the sphere does not change color. Furthermore, the Open Volume's hover effect does not appear.

The observed behavior described above only happens about 1/4 of the time. If the sphere does change color, follow these steps:

  1. Select the window's Close Volume button
  2. Select the window's Open Volume button again.
  3. Select the New Color button again.

It may be necessary to repeat these steps several times before the observed behavior occurs.

Use case

screenshot