but then I will have to add it to each individual column If you need to repeat the same functionality for the context menu, put that in function and make the Button action call that same function. Probably obvious to many. But seems to be the only work around if you want the context menu for the row to be consistent. I too want a single context menu definition for a Table row. In UIKit you have to select the defined cell to reveal the context menu, clicking on places which are effectively empty space doesn't open the context menu. The trick here is to expand your cell to fit the column width. Out of the box Table { }.contextMenu{ } doesn't seem to work at all. I've attached the modifier to the Table and see no context menus at all. So it seems we are stuck with attaching the context menu to the contents of the TableColumn and each column if you want it appear across the row. It forces you to define the content closure, you can't use the TableColumn defaults. Still feels like being a
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: