I would like to get the row and column index in ForEach loop of a 2D array in swiftUI.
let array = [
["1", "2", "3"],
["4", "5", "6"],
["7", "8", "9"]
]
ForEach(array, id: .self) { row in
ForEach(row, id: \.self) { element in
// How to get the index i and j for row and column of a 2D array in swiftUI ???
}
}