In swiftui, there are multiple buttons of the same listitem, why does the contextmenu not take effect?
I am a swiftui beginner, and there is a problem that has been bothering me. Multiple buttons on the same list item, why does the contextmenu not take effect? I want the button have the context menu not list item. the code is below: