Declare in properties field top in the View:
@Environment(\.presentationMode) var presentationMode
finally write the action code:
presentationMode.wrappedValue.dismiss()
0 Comments
Leave a Comment