How do I open unity in visionPro by clicking the button on my iOS app

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?