I found the solution using the modifier interactiveDismissDisabled(_:) https://developer.apple.com/documentation/swiftui/view/interactivedismissdisabled(_:)?changes=latest_minor
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: