Xcode – Retrieve value from row in Swift List
How can I get the value of the selected row in a list? For example: var data: [String] = [] List { ForEach(0..<data.count, id: .self) { item in HStack { Text(data[item]) } } } //: End of the List .onDelete(perform:…