Hi,
I'm trying to use Table in an app sort of similar to the garden example but imagine if there was a third view in the NavigationView for a third column.
And then imagine that if you selected a single plant in the middle table, a sort of detail inspector would appear in the third position with the data from your selection, updating as the selection in the middle table changed.
I'm struggling a bit to get this working. I've tried:
-
Wrapping the table column content closure's contents in a NavigationLink. This sort of works but it styles things oddly in the table column and as I scroll around, it seems to trigger on it's own, I'm guessing as cells are re-used or something behind the scenes. This feels wrong.
-
Moving row creation into the rows: parameter with TableRow but the only modifier there is for drag and drop, there's no onTapGesture or similar.
-
Watching for changes to the selected item via the binding and then acting on it then - this fires when I select stuff and I can get the related model object but I can't put a NavigationLink in there as it's outside of the view hierarchy so I'm not sure how to act on it.
I'm guessing there's some other way to handle this that I'm simply not thinking of but if anyone has any pointers, much appreciated!