Depending how you present the .sheet just call the code before you set the binding of isPresented to false or set the binding Item to nil
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: