googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

Add way to exit GVRCardboardView stereo programmatically #230

Closed vogonistic closed 7 years ago

vogonistic commented 7 years ago

When showing content in stereo, dismissing the UIViewController that contains the GVRCardboardView doesn't exit the experience. The SDK seems to have created a new window and when I stop calling render it just freezes on the last frame.

sanjayc77 commented 7 years ago

Set vrModeEnabled property to false. https://developers.google.com/vr/ios/reference/interface_g_v_r_cardboard_view#a9d184749c1056438ed60c94b938c725c