I am using the .sheet() modifier which takes the onDismiss parameter, on macOS. Looks like the onDismiss is never getting invoked, either with the ESC key or with by explicitly setting to false in the isPresented binding.
How do I fix this? I have run out of ideas :-|
Code Block .background(EmptyView() .sheet( isPresented: self.$store.presented, onDismiss: { print("dismissed")}, /* never gets called*/ content: { ConfigureRecordingView() .environmentObject(self.theme) .environmentObject(self.store) }) )
How do I fix this? I have run out of ideas :-|