The interactiveDismissDisabled() function in SwiftUI no longer works as expected in iOS 18.1. Are there any other users experiencing the same issue and were able to resolve this?
With .interactiveDismissDisabled(true) I'm expecting to not be able to dismiss the sheet.
I encountered the problem on iPhone 14.
The code looks like this:
var screen: some View {
StyledList {
customButton
}
.bottomSheet(isPresented: $isPresented, config: config) {
NavigationStack {
MyScreen()
}
.interactiveDismissDisabled(true)
}
}