Sunday, February 11, 2024
HomeiOS Developmentios - Is there a option to detect the at present energetic...

ios – Is there a option to detect the at present energetic window in an app in SwiftUI for VisionOS


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?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments