I'm completely new to SwiftUI and building in the apple ecosystem, so apologies if this doesn't help as I'm not fully sure why it would, but in my function I'm calling
{
await dismissImmersiveSpace()
switch await openImmersiveSpace(id: "MyFullSpace") {
case .opened:
myFullSpaceIsShown = true
case .userCancelled:
return
case .error:
return
@unknown default:
return
}
Perhaps the switch await will solve it?
Topic:
App & System Services
SubTopic:
Core OS
Tags: