<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ContentShapeKinds/contextMenuPreview",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17ContentShapeKindsV18contextMenuPreviewACvpZ"
  },
  "title" : "contextMenuPreview"
}
-->

# contextMenuPreview

The kind for context menu previews.

```
static let contextMenuPreview: ContentShapeKinds
```

## Discussion

When using this kind, only the preview shape will be affected. To
control the shape used to hit-test and start the context menu
presentation, use the `.interaction` kind.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)