When I used Context Menu for each photo in three columns.
So, the code is like below:
List {
LazyVGrid(columns: columns) {
View()
.contextMenu {
Button()
}
}
}
This just pop up whole list not individual element when I long press the element to see context menu.
The whole list is highlighted when context menu appears.
How can I make this to highlight individual element not the whole list?
If I remove any of List or LazyVGrid the problem fix. But the columns are not in the way I want.
Also, I don't want to change List to VStack or ScrollView which don't have refreshControl.
Thanks in advance.