title: SwiftUI: VStack/HStack/ZStack drag gesture not working
body: <p>I don't understand why the <code>DragGesture</code> doesn't work on VStack/HStack/ZStack. Consider the following simple example:</p>
  
  <pre><code>struct ContentView: View {
      @State private var offset = CGSize.zero
  
      var body: some View {
          VStack {
              Text("Hello World!")
          }
          .frame(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.height)
          .edgesIgnoringSafeArea(.all)
          .offset(y: offset.height)
          .gesture(DragGesture()
              .onChanged { val in
                  self.offset = val.translation
              }
              .onEnded { val in
                  self.offset = .zero
              }
          )
      }
  }
  </code></pre>
  
  <p>I'd like the whole view to move up and down based on the <code>offset</code> var (changed by the drag gesture). But even if I write the <code>.gesture</code> modifier on the <code>VStack</code> and even if the <code>VStack</code> is full screen (thanks to the <code>.frame</code> modifier) the drag gesture won't work on the <code>VStack</code>. The gesture works only if I drag the "Hello world" text, but it's unresponsive if I drag outside the <code>Text</code> (but still inside the full screen <code>VStack</code>). Any ideas? Thanks.</p>