I want add Rounded Rectangle to the Entire row when user click any of the grid item from that row..how can i add that rectangle to entire row...
struct ContentView: View {
let data = [Date]
let columns = Array(repeating: GridItem(.flexible()), count: 7)
var body: some View {
LazyVGrid(columns: columns, spacing: 20) {
ForEach(data, id: \.self) { item in
Text(item.date)
}
}
.padding(.horizontal)
}
}
I am expecting to get Row item group so that i can add overlay into it...but i'm unable to get it