I'm getting this error in the debugger ("Presentations are not currently supported in Volumetric contexts.") in VisionOS when I try to present an alert in a Volume. What's the correct way to present a modal alert in a volumetric window group? I'm using Xcode 15.3 Beta 3 with Apple Vision Pro (1.1) simulator.
This is also preventing me from using the RevenueCat paywall UI since it also returns this error.
var body: some Scene {
WindowGroup {
SheilaAppView()
.presentPaywallIfNeeded(
requiredEntitlementIdentifier: "access",
purchaseCompleted: { customerInfo in
print("Purchase completed: \(customerInfo.entitlements)")
},
restoreCompleted: { customerInfo in
// Paywall will be dismissed automatically if "pro" is now active.
print("Purchases restored: \(customerInfo.entitlements)")
}
)
}.windowStyle(.volumetric)
}