Dismiss UIViewRepresentable View

Any suggestions on how to go about dismissing a UIViewRepresentable view? It would be nice is I could trigger it when I click the back navigation button. Thank you

Isn't there a Binding<Bool> in the environment for that? (Not 100% sure though.)