[ad_1]
So principally I’ve a easy view like so:
struct ContentView: View {
@State var navStack = NavigationPath()
@Surroundings(.dismiss) var dismiss
var physique: some View {
NavigationView {
NavigationLink {
Button {
dismiss()
} label: {
Textual content("Pop Again")
}
} label: {
Textual content("Element View")
}
}
}
}
The issue is: once I faucet on the “Pop again” button within the element view, I get the next error message:
[Scene] Invalid try and name -[UIApplication requestSceneSessionDestruction:] from an unsupported machine.
I do not perceive why this error is occuring. It was working completely effective earlier than however I maintain getting this error. I’m utilizing iOS 16 so I am undecided if there’s a bug.
What am I doing fallacious and the way can I repair it? Thanks!
[ad_2]
