I\'ve a array of items displayed using List in my SwiftUI View. I tired to add a contextMenu to delete individual items in the List<
List
SwiftUI View
contextMenu
List<
It’s an issue with SwiftUI, hopefully Apple fix it in the next major release. For now you can solve the issue by adding a small delay before actions are performed in your context button action:
DispatchQueue.main.asyncAfter(deadline: .now() + 0.7){ //delete row }