title: How to open Menu only on long press gesture SwiftUI
body: <p>Is there a way to show context menu on long press gesture in SwiftUI?</p>
  <p>I have a code like this:</p>
  <pre><code>Text(messageModel.message)
    .padding(.vertical,8)
    .padding(.horizontal,12)
    .background(Constants.clientMessageColor)
    .foregroundColor(Color.black)
    .cornerRadius(20, corners: [.topLeft,.bottomLeft,.topRight, .bottomRight])
    .onTapGesture {
         self.isExpanded.toggle()
         self.isClientNameVisible.toggle()
    }
    .contextMenu {
         Button(action: {
                                          
         }) {
               Text(&quot;Normal Colors&quot;)
               Image(systemName: &quot;paintbrush&quot;)
         }
     }
  </code></pre>
  <p>And also I use Menu in SwiftUI and also don't know how to show in long press.</p>
  <p>My code look like this:</p>
  <pre><code>Menu() {
      Button(&quot;Order Now&quot;, action: {})
      Button(&quot;Adjust Order&quot;, action: {})
      Button(&quot;Cancel&quot;, action: {})
  } label : {
      Text(&quot;HELLO&quot;)
          .onLongPressGesture {
              // Show menu when this triggers
          }
  }
  </code></pre>