I am engaged on constructing an software that has a major volumetric window that opens a plain settings window and I wish to dismiss it when the person shifts focus again to the primary window. To perform this, I would wish to detect the main target of the primary window and dismiss the settings window when focus modifications.
I’ve tried utilizing:
@Atmosphere(.controlActiveState) var controlActiveState
however this appears to be unavailable on VisionOS.
Issues like .targeted on the view appear to be associated to setting the main target state vs. detecting the main target state.
Any concepts on learn how to detect the at present energetic window?