Open shinyquagsire23 opened 9 months ago
This might actually be a visionOS bug because I just had it change mid-session after opening Control Center, lol
Actually, I think I missed this in my PR review. Here, the GlobalSettings instance should be in an @ObservedObject
in the app struct, so that SwiftUI tracks the dependency properly: https://github.com/alvr-org/alvr-visionos/blob/main/ALVRClient/ALVRClientApp.swift#L77
Or GlobalSettings could use @Observable
, in which case the dependency would be picked up without needing the additional property wrapper.
Sometimes the app doesn't fully clean up and seems to reuse the existing immersive scene, with incorrect settings? Or something, I'm not sure what it's doing.