Context menu on tvOS LazyVGrid selecting wrong item.
It works fine if selecting items on last row.
Testing on code from https://developer.apple.com/videos/play/wwdc2024/10207/
I just added contextMenu
LazyVGrid(columns: columns, spacing: 40) {
ForEach(sortedMatchingAssets) { asset in
Button {} label: {
asset.landscapeImage
.resizable()
.aspectRatio(16 / 9, contentMode: .fit)
.contextMenu {
Button("Test") {}
}
Text(asset.title)
}
.buttonStyle(.borderless)
}
}
Attached video with the bug - https://www.icloud.com/iclouddrive/020zq2PxZ_E_1Pr0vE86-8aww#Screen_Recording_2024-06-13_at_9.26.15%E2%80%AFPM