I\'ve got a List view and each row of the list contains an HStack with some text view(\'s) and an image, like so:
HStack{ Text(group.name) Spacer()
As I've recently learned there is also:
HStack { ... } .contentShape(Rectangle()) .onTapGesture { ... }
Works well for me.