Question:I have List/TableView with Cells. Now each cell contains detail about given Item and some buttons like Edit the Item, Show Detail of Item, Show subview of given Item etc.
Now, for case of showing detail of Item, I have tried to add
NavigationLink, but now if anyone clicks anywhere on that cell, it moves to detail screen.
I dont want to move to detail screen on clicking anywhere in screen, I want to push detail screen only when someone clicks “Show Detail” button in that cell.
.hidden()modifier on the
navigationLinkto prevent the list item from capturing it’s action
automaticto something else on the list item to prevent it from capturing the button action. (for example
If you have better answer, please add a comment about this, thank you!