Post

Replies

Boosts

Views

Activity

Reply to SwiftUI presentationMode dismiss not work on specific case
One workaround would be to dismiss any open sheets before the app is sent to background. This is what I'm doing. Obviously not ideal, and will also close sheets if someone pops over to their control center or notifications/lock screen, but better than vital buttons not working. 😅 .onReceive(NotificationCenter.default.publisher(for: UIApplication.willResignActiveNotification)) { _ in self.isSheetPresented = false }
Sep ’22