Hi,
I am begginner using SwiftUI on Vision Pro. I'd like to show a window from ContentView, and window has no close and move buttons. Likes below. How can I do that?
Hi,
I am begginner using SwiftUI on Vision Pro. I'd like to show a window from ContentView, and window has no close and move buttons. Likes below. How can I do that?
Add the following modifier on a view where appropriate in your code:
.persistentSystemOverlays(.hidden)
I actually resolved bug yesterday where the close and home button were missing! I found this modifier, commented it, and the missing controls appeared again.
Thank you! I tried and found they were hidden when view showing. But if I tap the view, they appear again. Did you see this?
No. Our view had lots of code to handle lots of taps, and we did not see these controls come back when we were experiencing our issue.
Ok, I will check more. Thanks.