I display an actionSheet in SwiftUI like this
.actionSheet(isPresented: $actionSheetControl.showActionSheet) { () -> ActionSheet in
getActionSheetPurchase(item)
}
This can be dismissed by tapping outside the action sheet.
How can I detect if the action sheet is dismissed in a case like that?