title: onTapGesture fails whole appliaction
body: <p>I am making a little game with some youtube tutorials, I made the design but whenever I try to add <code>onTapGesture</code> my xCode returns an error <code>Cannot Preview This File</code>, and the simulator launches but it's just all white</p>
  <pre><code>struct ContentView: View {
      var body: some View {
          HStack{
              CardView()
              CardView()
              CardView()
              CardView()
          }
          .foregroundColor(.orange)
          .padding(.horizontal)
      }
  }
  struct CardView:View {
      @State var isFaceUp:Bool = false
      var body: some View {
          ZStack{
              let shape = RoundedRectangle(cornerRadius: 20)
              if isFaceUp {
                  shape.stroke(lineWidth: 3)
                  Text(&quot;‍♂️&quot;).font(.largeTitle)
              } else{
                  shape.fill()
              }
          }
          onTapGesture {
              isFaceUp = !isFaceUp
          }
      }
  }
  </code></pre>