SwiftUI List not getting updated when `listRowInsets` are applied
问题 Goal Update data in a List on tap Problem When .listRowInsets are applied to the list rows, the list stops getting updates when the state changes. Code struct ContentView: View { private var array = ["a", "b", "c"] @State private var selectedIndex = 0 var body: some View { makeBody() } private func makeRow(_ t: String, index: Int) -> some View { return HStack { Text(t) Spacer() if selectedIndex == index { Image(systemName: "checkmark.circle") } } .contentShape(Rectangle()) .onTapGesture {