title: SwiftUI - how to detect long press on Button?
body: <p>I have a Button where when it gets pressed, it performs some actions. But I would like to modify the same Button to detect a longer press, and perform a different set of processes. How do I modify this code to detect a long press? </p>
  
  <pre><code>Button(action: {
                // some processes
  
              }) {
                Image(systemName: "circle")
                  .font(.headline)
                  .opacity(0.4)
  
              }
  </code></pre>