ListやFromを使用した時のCellにTextを使ったとして、表示される文字を押すと反応するが、余白を押すと反応しない。 contentShape()を使用すると余白にも反応する。 毎回忘れて検索するので、書いておく。 struct ContentView: View { @State var showingAlert = false var body: some View { HStack { Text("Click me") Spacer() } //.background(.green) .padding() .contentShape(Rectangle()) .onTapGest…