title: How to detect tap location in SwiftUI?
body: <p>I want to print the location (x,y coordinates) of the tapped point in the &lt;#code#&gt; block along with the dimensions of my view.</p>
  <pre><code>struct ContentView: View {
      var body: some View {
          self.onTapGesture {
              &lt;#code#&gt;
          }
      }
  }
  </code></pre>