How do I open unity view in VR mode by clicking a button in the swiftui app in visionPro

I have packaged the unity visionOS version into xcode and integrated it with the swiftui project. When unity is in 2D window mode, clicking the button can display unity view, but when unity is in VR mode, clicking the button does not respond, and unity log can print normally,how can i do?