Hi,
I’m not sure if anyone is experiencing this, but I’ve followed the instruction where you clip the horizontal photo to stay within its boundary. However, even though the image is clipped from the view itself, the onTapGesture actually gets applied to the “unclipped” photo. So when you click the right side of R3C1, it actually shows R3C2’s photo (because this overflows to the left). Does anyone know the solution to this?
Image(p)
.resizable()
.aspectRatio(contentMode: .fill)
.frame(maxWidth: (proxy.size.width-20)/3)
.clipped()
.onTapGesture {
selectedPhoto = p
sheetVisible = true