I’m trying to show a view inside a sheet in SwiftUI, I using a property within the state to show and hide it.
But when using the binding does not work, the change event is sent and not detected by the sheet to be displayed.
Is there any other way to listen to the event? or do binding in another way to work on swiftUI sheets?
Here is the example code:

I’m trying to show a view inside a sheet in SwiftUI, I using a property within the state to show and hide it.
But when using the binding does not work, the change event is sent and not detected by the sheet to be displayed.
Is there any other way to listen to the event? or do binding in another way to work on swiftUI sheets?
Here is the example code: