Show Menu on longPressGesture

Seeing as contextMenu as been deprecated and they are Menus shown on a long press, how can that be achieved with SwiftUI?

I haven't found a new initialiser for Menu yet to show on a long press or an isPresented argument.
Answered by BabyJ in 641461022
I just saw contextMenu(_:) being deprecated so I assumed that context menus were all deprecated. I didn't see contextMenu(menuItems:) though.
I guess that's fine then since I've never used ContextMenu.

There is still the issue of not having titles in menus and destructive actions in both menus and context menus for SwiftUI.

Seeing as contextMenu as been deprecated

I can find ContextMenu and contextMenu(_:)) are deprecated in iOS 14.2, but there is still contextMenu(menuItems:)), available except watchOS.

Are you talking about watchOS? Or contextMenu(menuItems:) does not work for your purpose?

Accepted Answer
I just saw contextMenu(_:) being deprecated so I assumed that context menus were all deprecated. I didn't see contextMenu(menuItems:) though.
I guess that's fine then since I've never used ContextMenu.

There is still the issue of not having titles in menus and destructive actions in both menus and context menus for SwiftUI.
Show Menu on longPressGesture
 
 
Q