79631754

Date: 2025-05-21 10:11:54
Score: 1
Natty:
Report link

In my case, I found I needed two modifiers:

// view code { }
.contentShape(RoundedRectangle(cornerRadius: 20)) // tappable shape
.contentShape(.contextMenuPreview, RoundedRectangle(cornerRadius: 20)) // preview shape
.contextMenu { }

Using just the second one didn't work for me.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aradroid