Relative Content

Tag Archive for swiftuigridcell

In Swiftui, is there a way to get the id / position of a grid’s cell using onTapGesture or any other technique?

I am trying to learn SwiftUI by converting my personal Android apps. I am initially prototyping the interfaces. I have coded a LazyVGrid. I want to be able to tap on a “cell” and be able to determine the Id that I assigned to that cell/view or the row and column of that cell/view in order to manipulate the data displayed. This app is to run on an iPhone so, to my understanding, a table would not display all of my columns.