I'm trying to check for user active session on first view appearance in swiftUI and if theres no active session ,a sheet will be presented to ask for user credentials .
The problem I'm facing is the user can easily dismiss the sheet using swipe gesture or done button in navigation view , I want to disable the dismissal through these ways and only enable it programmatically, Is there a way to do that ?